Answers for "sdl quit event not working multiple windows"

C#
0

sdl quit event not working multiple windows

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 ...
          }

    }

}
Posted by: Guest on November-19-2020

Code answers related to "sdl quit event not working multiple windows"

C# Answers by Framework

Browse Popular Code Answers by Language