src/supertux/screen_manager.cpp: Add SDL 1.3 compatibility code.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 14 Jan 2010 17:41:46 +0000 (18:41 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 21 Feb 2010 07:58:50 +0000 (08:58 +0100)
src/supertux/screen_manager.cpp

index 493aaec..c34c039 100644 (file)
@@ -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)) 
   {