📜  sdl 退出事件在多个窗口中不起作用 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.861000             🧑  作者: Mango

代码示例1
while (SDL.SDL_PollEvent(out SDL.SDL_Event e))
{
      if (e.type == SDL.SDL_EventType.SDL_WINDOWEVENT)
      {
          if (e.window.windowEvent == SDL.SDL_WindowEventID.SDL_WINDOWEVENT_CLOSE)
          {
            // ... Handle close ...
          }

    }

}