Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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

    }

}
 
PREVIOUS NEXT
Tagged: #sdl #quit #event #working #multiple #windows
ADD COMMENT
Topic
Name
5+4 =