src/supertux/screen_manager.cpp: Add SDL 1.3 compatibility code.
[supertux.git] / 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)) 
   {