Build option for Lua events that is off by default.

This commit is contained in:
jussi
2024-02-10 21:06:09 +02:00
parent eda4eacfce
commit 6557a2ebca
11 changed files with 29 additions and 13 deletions

View File

@@ -1129,7 +1129,7 @@ bool luaCallMain() {
void luaCallProcess() {
#ifdef PLATFORM_DESKTOP_SDL
#if defined PLATFORM_DESKTOP_SDL && defined LUA_EVENTS
platformSendEvents();
#endif
lua_State *L = state->luaState;

View File

@@ -649,5 +649,7 @@ void luaPlatformRegister() {
lua_pop( L, -1 );
#ifdef LUA_EVENTS
platformRegisterEvents();
#endif
}

View File

@@ -555,5 +555,7 @@ void luaPlatformRegister() {
lua_pop( L, -1 );
platformRegisterEvents()
#ifdef LUA_EVENTS
platformRegisterEvents();
#endif
}