From 8d77edb8a04aa024662327b036175698273f039f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 14 Jan 2010 18:41:46 +0100 Subject: [PATCH] src/supertux/screen_manager.cpp: Add SDL 1.3 compatibility code. --- src/supertux/screen_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- 2.11.0