From 4c36bed53fe63ae6056730b3ecad2573f03d88f8 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 15 Nov 2021 11:34:17 +0800 Subject: +lua addons --- Runtime/Scripting/Events/Events.bind.cpp | 48 ++++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'Runtime/Scripting/Events/Events.bind.cpp') diff --git a/Runtime/Scripting/Events/Events.bind.cpp b/Runtime/Scripting/Events/Events.bind.cpp index 40ea544..32e8a2b 100644 --- a/Runtime/Scripting/Events/Events.bind.cpp +++ b/Runtime/Scripting/Events/Events.bind.cpp @@ -31,33 +31,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 }, - { "MouseEnterWindow", InputEvent_MouseEnterWindow }, - { "MouseLeaveWindow", InputEvent_MouseLeaveWindow }, - { "MagnifyGesture", InputEvent_MagnifyGesture }, - { "SwipeGesture", InputEvent_SwipeGesture }, - { "RotateGesture", InputEvent_RotateGesture } + { "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 } ); LUA_BIND_REGISTER_ENUM(state, "EMouseButton", - { "LeftButton", Mouse_LeftButton }, - { "RightButton", Mouse_RightButton }, + { "LeftButton", Mouse_LeftButton }, + { "RightButton", Mouse_RightButton }, { "MiddleButton", Mouse_MiddleButton } ); -- cgit v1.1-26-g67d0