-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwiInput_BindLua.h
More file actions
76 lines (62 loc) · 1.93 KB
/
Copy pathwiInput_BindLua.h
File metadata and controls
76 lines (62 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#pragma once
#include "wiLua.h"
#include "wiLuna.h"
#include "wiInput.h"
namespace wi::lua
{
class Input_BindLua
{
public:
inline static constexpr char className[] = "Input";
static Luna<Input_BindLua>::FunctionType methods[];
static Luna<Input_BindLua>::PropertyType properties[];
Input_BindLua(lua_State* L) {}
int Down(lua_State* L);
int Press(lua_State* L);
int Release(lua_State* L);
int Hold(lua_State* L);
int GetPointer(lua_State* L);
int SetPointer(lua_State* L);
int GetPointerDelta(lua_State* L);
int HidePointer(lua_State* L);
int GetAnalog(lua_State* L);
int GetTouches(lua_State* L);
int SetControllerFeedback(lua_State* L);
int WhatIsPressed(lua_State* L);
int IsGamepadButton(lua_State* L);
int ButtonToString(lua_State* L);
int StringToButton(lua_State* L);
int SetCursor(lua_State* L);
int SetCursorFromFile(lua_State* L);
int ResetCursor(lua_State* L);
int ResetCursors(lua_State* L);
static void Bind();
};
class Touch_BindLua
{
public:
wi::input::Touch touch;
inline static constexpr char className[] = "Touch";
static Luna<Touch_BindLua>::FunctionType methods[];
static Luna<Touch_BindLua>::PropertyType properties[];
Touch_BindLua(lua_State* L) {}
Touch_BindLua(const wi::input::Touch& touch) :touch(touch) {}
int GetState(lua_State* L);
int GetPos(lua_State* L);
static void Bind();
};
class ControllerFeedback_BindLua
{
public:
wi::input::ControllerFeedback feedback;
inline static constexpr char className[] = "ControllerFeedback";
static Luna<ControllerFeedback_BindLua>::FunctionType methods[];
static Luna<ControllerFeedback_BindLua>::PropertyType properties[];
ControllerFeedback_BindLua(lua_State* L) {}
ControllerFeedback_BindLua(const wi::input::ControllerFeedback& feedback) :feedback(feedback) {}
int SetVibrationLeft(lua_State* L);
int SetVibrationRight(lua_State* L);
int SetLEDColor(lua_State* L);
static void Bind();
};
}