diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4eaa09a66..ffcdeb934 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1009,7 +1009,11 @@ void Game::handleInput() // Events SDL_Event event; +#ifdef USE_SDL2 + while (SDL_WaitEventTimeout(&event, 0)) +#else while (SDL_PollEvent(&event)) +#endif { BLOCK_START("Game::handleInput 2") if (mLogInput) |