浏览代码

Add implementation for CORE.Window.eventWaiting on PLATFORM_DESKTOP_SDL

pull/4642/head
asdqwe 3 个月前
父节点
当前提交
0ffde44b78
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/platforms/rcore_desktop_sdl.c

+ 2
- 1
src/platforms/rcore_desktop_sdl.c 查看文件

@ -1378,7 +1378,8 @@ void PollInputEvents(void)
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 };
while (SDL_PollEvent(&event) != 0)

正在加载...
取消
保存