Minor cleanup
authorIngo Ruhnke <grumbel@gmail.com>
Tue, 5 Aug 2014 00:40:15 +0000 (02:40 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Tue, 5 Aug 2014 00:40:15 +0000 (02:40 +0200)
src/control/joystickkeyboardcontroller.cpp
src/control/joystickkeyboardcontroller.hpp
src/supertux/main.cpp

index 0e176e2..85c6b8e 100644 (file)
@@ -28,7 +28,6 @@
 #include "supertux/menu/keyboard_menu.hpp"
 #include "util/gettext.hpp"
 #include "util/writer.hpp"
-//#include <SDL_keycode.h> // add by giby
 
 JoystickKeyboardController::JoystickKeyboardController() :
   controller(),
index 705b7bc..661ca7f 100644 (file)
@@ -20,7 +20,6 @@
 #include "control/controller.hpp"
 
 #include <SDL.h>
-#include <SDL_keycode.h> // add by giby
 #include <map>
 #include <string>
 #include <vector>
@@ -33,9 +32,7 @@ class KeyboardMenu;
 class JoystickMenu;
 class Controller;
 
-    //SDL_JoystickID myID = SDL_JoystickInstanceID(myOpenedStick);
-
-class JoystickKeyboardController // http://wiki.libsdl.org/moin.fcg/SDL_Joystick for info 
+class JoystickKeyboardController
 {
 private:
   friend class KeyboardMenu;
index 5dc4c88..ca02a0f 100644 (file)
@@ -399,10 +399,6 @@ Main::init_sdl()
   // just to be sure
   atexit(SDL_Quit);
 
- // SDL_EnableUNICODE(1); //old code, mofif by giby 
- //   SDL_JoystickID myID = SDL_JoystickInstanceID(myOpenedStick);
-  
-
   // wait 100ms and clear SDL event queue because sometimes we have random
   // joystick events in the queue on startup...
   SDL_Delay(100);