diff options
author | chai <chaifix@163.com> | 2021-11-15 16:46:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-15 16:46:12 +0800 |
commit | e47a1e5544d00c26aa08ae41287a525617e494b8 (patch) | |
tree | cde0574240413c6546310efd50414aa6d4f66403 /Runtime | |
parent | 2853639a612860ab5a5710471ad66c33d63c9b41 (diff) |
*misc
Diffstat (limited to 'Runtime')
-rw-r--r-- | Runtime/Scripting/Events/Events.bind.cpp | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/Runtime/Scripting/Events/Events.bind.cpp b/Runtime/Scripting/Events/Events.bind.cpp index 32e8a2b..d56305e 100644 --- a/Runtime/Scripting/Events/Events.bind.cpp +++ b/Runtime/Scripting/Events/Events.bind.cpp @@ -2,7 +2,6 @@ #include "Runtime/Lua/LuaHelper.h" #include "Runtime/Debug/Log.h"
-// Events.CopyEvent(e)
int CopyEvent(lua_State* L)
{
LUA_BIND_STATE(L);
@@ -31,33 +30,33 @@ int luaopen_GameLab_Events(lua_State* L) state.RegisterMethods(funcs); LUA_BIND_REGISTER_ENUM(state, "EEventType", - { "MouseDown", InputEvent_MouseDown },
- { "MouseUp", InputEvent_MouseUp },
- { "MouseMove", InputEvent_MouseMove },
- { "MouseDrag", InputEvent_MouseDrag },
- { "KeyDown", InputEvent_KeyDown },
- { "KeyUp", InputEvent_KeyUp },
- { "ScrollWheel", InputEvent_ScrollWheel },
- { "Repaint", InputEvent_Repaint },
- { "Layout", InputEvent_Layout },
- { "DragUpdated", InputEvent_DragUpdated },
- { "DragPerform", InputEvent_DragPerform },
- { "DragExited", InputEvent_DragExited },
- { "Ignore", InputEvent_Ignore },
- { "Used", InputEvent_Used },
- { "ValidateCommand", InputEvent_ValidateCommand },
- { "ExecuteCommand", InputEvent_ExecuteCommand },
- { "ContextClick", InputEvent_ContextClick },
+ { "MouseDown", InputEvent_MouseDown },
+ { "MouseUp", InputEvent_MouseUp },
+ { "MouseMove", InputEvent_MouseMove },
+ { "MouseDrag", InputEvent_MouseDrag },
+ { "KeyDown", InputEvent_KeyDown },
+ { "KeyUp", InputEvent_KeyUp },
+ { "ScrollWheel", InputEvent_ScrollWheel },
+ { "Repaint", InputEvent_Repaint },
+ { "Layout", InputEvent_Layout },
+ { "DragUpdated", InputEvent_DragUpdated },
+ { "DragPerform", InputEvent_DragPerform },
+ { "DragExited", InputEvent_DragExited },
+ { "Ignore", InputEvent_Ignore },
+ { "Used", InputEvent_Used },
+ { "ValidateCommand", InputEvent_ValidateCommand },
+ { "ExecuteCommand", InputEvent_ExecuteCommand },
+ { "ContextClick", InputEvent_ContextClick },
{ "MouseEnterWindow", InputEvent_MouseEnterWindow },
{ "MouseLeaveWindow", InputEvent_MouseLeaveWindow },
- { "MagnifyGesture", InputEvent_MagnifyGesture },
- { "SwipeGesture", InputEvent_SwipeGesture },
- { "RotateGesture", InputEvent_RotateGesture } + { "MagnifyGesture", InputEvent_MagnifyGesture },
+ { "SwipeGesture", InputEvent_SwipeGesture },
+ { "RotateGesture", InputEvent_RotateGesture } ); LUA_BIND_REGISTER_ENUM(state, "EMouseButton", - { "LeftButton", Mouse_LeftButton }, - { "RightButton", Mouse_RightButton }, + { "LeftButton", Mouse_LeftButton }, + { "RightButton", Mouse_RightButton }, { "MiddleButton", Mouse_MiddleButton } ); |