From 8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Sep 2013 14:40:27 +0300 Subject: improve SDL2 handling events. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index e434f23e9..cb0b6b982 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -946,7 +946,11 @@ int Client::gameExec() { BLOCK_START("Client::gameExec 2") // Handle SDL events +#ifdef USE_SDL2 + while (SDL_WaitEventTimeout(&event, 0)) +#else while (SDL_PollEvent(&event)) +#endif { if (mLogInput) logEvent(event); -- cgit v1.2.3-70-g09d2