From 4109e89fc252bd219722bfbc4ac3a07322d30839 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 14 May 2023 21:43:13 +0200 Subject: [PATCH] Add engine_event_get to Lua bindings --- modules/engine/addon/lua.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);