Add engine_event_get to Lua bindings

This commit is contained in:
Fierelier 2023-05-14 21:43:13 +02:00
parent 32fef09e83
commit 4109e89fc2

View File

@ -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);