From 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 09:23:38 +0800 Subject: *misc --- Runtime/Events/InputEvent.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Runtime/Events/InputEvent.cpp (limited to 'Runtime/Events/InputEvent.cpp') 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"); + + +} -- cgit v1.1-26-g67d0