diff options
author | chai <chaifix@163.com> | 2021-11-08 09:23:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-08 09:23:38 +0800 |
commit | 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 (patch) | |
tree | 31ca6e8ea6d2e960e8d35f801bd92555942822e2 /Runtime/Events/InputEvent.cpp | |
parent | efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c (diff) |
*misc
Diffstat (limited to 'Runtime/Events/InputEvent.cpp')
-rw-r--r-- | Runtime/Events/InputEvent.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Runtime/Events/InputEvent.cpp b/Runtime/Events/InputEvent.cpp new file mode 100644 index 0000000..ac41c94 --- /dev/null +++ b/Runtime/Events/InputEvent.cpp @@ -0,0 +1,12 @@ +#include "InputEvent.h" + +void InputEvent::CastToTable(LuaBind::State& state) +{ + lua_newtable(state); + int table = state.GetTop(); + + lua_pushnumber(state, type); + lua_setfield(state, table, "type"); + + +} |