diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-10 14:40:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-10 14:40:27 +0300 |
commit | 8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735 (patch) | |
tree | 2c7a8b24ca6d0c9e714bfeea179d9d58a9126590 /src/client.cpp | |
parent | dc17bee84d0499dcf009f6a13faa55daba99ae18 (diff) | |
download | mv-8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735.tar.gz mv-8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735.tar.bz2 mv-8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735.tar.xz mv-8dfb59db0b8df1b5b2640c37fa1fe0d87daf3735.zip |
improve SDL2 handling events.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |