From 63f3c1781cec32bd4603cd92a9b788e3000a9594 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 12 Mar 2025 23:26:01 +0200 Subject: Basic sdl3 support. --- src/lua_core.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lua_core.c') 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; -- cgit v1.2.3