X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fscreen_manager.cpp;fp=src%2Fsupertux%2Fscreen_manager.cpp;h=c34c0395163011989051467f0492bcaa8fd873c8;hb=8d77edb8a04aa024662327b036175698273f039f;hp=493aaecb3e9f26c0f98001503daf4c5d385f2a81;hpb=5a6d2c8d918480f53612c7a2347251ced9a1ba75;p=supertux.git diff --git a/src/supertux/screen_manager.cpp b/src/supertux/screen_manager.cpp index 493aaecb3..c34c03951 100644 --- a/src/supertux/screen_manager.cpp +++ b/src/supertux/screen_manager.cpp @@ -190,7 +190,11 @@ void ScreenManager::process_events() { g_main_controller->update(); +#if SDL_VERSION_ATLEAST(1,3,0) + Uint8* keystate = SDL_GetKeyboardState(NULL); +#else Uint8* keystate = SDL_GetKeyState(NULL); +#endif SDL_Event event; while(SDL_PollEvent(&event)) {