[SDL] Does SDL_SetVideoMode reset the event queue?

Luke J Crook luke at balooga.com
Wed Apr 1 13:03:00 PDT 2009


Does a call to SDL_SetVideoMode have an effect on the existing event queue?

Here is the scenario;

1) Open an SDL window.
2) Start the event queue.
3) Press and hold a key.
   => SDL_KEYDOWN event is received.
4) Call SDL_SetVideoMode to resize the window.
   => SDL_KEYUP event is received.
5) Release the key.
   => No event is received.

What is up with the SDL_KEYUP event being received following the call to 
SDL_SetVideoMode? Is this a known issue/expected behaviour?

Thanks,
- Luke





More information about the SDL mailing list