From f1e48fffe3c224ee81cdc1f85dbd0179b202d457 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Sep 2017 19:38:59 +0300 Subject: Split SDL_WaitEventTimeout/SDL_PollEvent into lower level SDL function calls. --- src/utils/sdlhelper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils/sdlhelper.h') diff --git a/src/utils/sdlhelper.h b/src/utils/sdlhelper.h index abb3934cb..67a979da3 100644 --- a/src/utils/sdlhelper.h +++ b/src/utils/sdlhelper.h @@ -35,6 +35,8 @@ PRAGMA48(GCC diagnostic ignored "-Wshadow") #include PRAGMA48(GCC diagnostic pop) +union SDL_Event; + struct SDL_Surface; struct SDL_SysWMinfo; @@ -71,6 +73,8 @@ namespace SDL void initLogger(); void WaitThread(SDL_Thread *const thread); + + bool PollEvent(SDL_Event *event); } // namespace SDL #endif // USE_SDL2 -- cgit v1.2.3-70-g09d2