summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-08 19:38:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-08 19:38:59 +0300
commitf1e48fffe3c224ee81cdc1f85dbd0179b202d457 (patch)
treea180b55377204e85c52a4accf35ecc964f2d2cca /src/utils/sdl2helper.h
parent29557a45208b1576e293427090360f6d794ea6b3 (diff)
downloadplus-f1e48fffe3c224ee81cdc1f85dbd0179b202d457.tar.gz
plus-f1e48fffe3c224ee81cdc1f85dbd0179b202d457.tar.bz2
plus-f1e48fffe3c224ee81cdc1f85dbd0179b202d457.tar.xz
plus-f1e48fffe3c224ee81cdc1f85dbd0179b202d457.zip
Split SDL_WaitEventTimeout/SDL_PollEvent into lower level SDL function calls.
Diffstat (limited to 'src/utils/sdl2helper.h')
-rw-r--r--src/utils/sdl2helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h
index 089bbbfab..d1b474d50 100644
--- a/src/utils/sdl2helper.h
+++ b/src/utils/sdl2helper.h
@@ -31,6 +31,8 @@ PRAGMA48(GCC diagnostic ignored "-Wshadow")
#include <SDL_thread.h>
PRAGMA48(GCC diagnostic pop)
+union SDL_Event;
+
struct SDL_Surface;
struct SDL_SysWMinfo;
struct SDL_Window;
@@ -65,6 +67,8 @@ namespace SDL
void initLogger();
void WaitThread(SDL_Thread *const thread);
+
+ bool PollEvent(SDL_Event *event);
} // namespace SDL
#endif // USE_SDL2