Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keyboard input being swallowed due to missing events such as SDL_…
…KEYUP. This is due to a seemingly undocumented bug and/or feature in SDL, where SDL_EventState and SDL_SetEventFilter mysteriously discard all pending events. The following SDL code in SDL_EventState and SDL_SetEventFilter discards all pending events, with a comment saying it does so: while ( SDL_PollEvent(&bitbucket) > 0 ) ; There appears to be no documentation of this fact anywhere outside the comment in the SDL code. I am not aware of any logical reason why enabling events with SDL_EventState should cause less events to be received than otherwise.
- Loading branch information