From: Florian Forster Date: Thu, 14 Jan 2010 17:41:46 +0000 (+0100) Subject: src/supertux/screen_manager.cpp: Add SDL 1.3 compatibility code. X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=8d77edb8a04aa024662327b036175698273f039f src/supertux/screen_manager.cpp: Add SDL 1.3 compatibility code. --- 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)) {