summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
authorjussi2025-03-12 23:26:01 +0200
committerjussi2025-03-12 23:26:01 +0200
commit63f3c1781cec32bd4603cd92a9b788e3000a9594 (patch)
tree977b1847a2b7cd4c1dada94597a19a6acaa72c1b /src/lua_core.c
parentbfa73944f7e8a3a239ed105871a0912e8b22ed15 (diff)
downloadreilua-enhanced-63f3c1781cec32bd4603cd92a9b788e3000a9594.tar.gz
reilua-enhanced-63f3c1781cec32bd4603cd92a9b788e3000a9594.tar.bz2
reilua-enhanced-63f3c1781cec32bd4603cd92a9b788e3000a9594.zip
Basic sdl3 support.
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lua_core.c b/src/lua_core.c
index de90e89..0191e98 100644
--- a/src/lua_core.c
+++ b/src/lua_core.c
@@ -17,8 +17,10 @@
#ifdef PLATFORM_DESKTOP
#include "platforms/core_desktop_glfw.c"
-#elif PLATFORM_DESKTOP_SDL
- #include "platforms/core_desktop_sdl.c"
+#elif PLATFORM_DESKTOP_SDL2
+ #include "platforms/core_desktop_sdl2.c"
+#elif PLATFORM_DESKTOP_SDL3
+ #include "platforms/core_desktop_sdl3.c"
#elif PLATFORM_WEB
#include "platforms/core_web.c"
#endif
@@ -1451,7 +1453,7 @@ void luaCallInit() {
void luaCallUpdate() {
-#if defined PLATFORM_DESKTOP_SDL && defined LUA_EVENTS
+#if defined PLATFORM_DESKTOP_SDL2 && defined LUA_EVENTS
platformSendEvents();
#endif
lua_State* L = state->luaState;