diff --git a/modules/engine/addon/lua.c b/modules/engine/addon/lua.c index 5f670f6..3ecfd93 100644 --- a/modules/engine/addon/lua.c +++ b/modules/engine/addon/lua.c @@ -44,6 +44,12 @@ int engine_luaf_time_sleep(lua_State *L) { return 0; } +int engine_luaf_event_get(lua_State *L) { + struct ENGINE_EVENT * outvar = engine_event_get(); + lua_pushlightuserdata(L,outvar); + return 1; +} + int engine_luaf_texture_create(lua_State *L) { int invar1 = luaL_checkinteger(L,1); int invar2 = luaL_checkinteger(L,2);