Add implementation for CORE.Window.eventWaiting on PLATFORM_DESKTOP_SDL

This commit is contained in:
asdqwe 2024-12-26 22:18:54 -03:00
parent 7ecc47d12e
commit 0ffde44b78

View File

@ -1378,7 +1378,8 @@ void PollInputEvents(void)
CORE.Window.resizedLastFrame = false; CORE.Window.resizedLastFrame = false;
if (((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) && ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0)) SDL_WaitEvent(NULL); if ((CORE.Window.eventWaiting) || (((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) && ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0))) SDL_WaitEvent(NULL);
if (CORE.Window.eventWaiting) CORE.Time.previous = GetTime();
SDL_Event event = { 0 }; SDL_Event event = { 0 };
while (SDL_PollEvent(&event) != 0) while (SDL_PollEvent(&event) != 0)