summaryrefslogtreecommitdiff
path: root/Runtime/Events/InputEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Events/InputEvent.cpp')
-rw-r--r--Runtime/Events/InputEvent.cpp12
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");
+
+
+}