Commits

Anonymous committed 927e5ac

Fixed joystick debug code

Comments (0)

Files changed (1)

 
     value = SDL_JoystickGetAxis (joy, axis);
 #ifdef DEBUG
-    printf("SDL_JoystickGetAxis value:%d:\n", value);
+    /*printf("SDL_JoystickGetAxis value:%d:\n", value);*/
 #endif
 
     return PyFloat_FromDouble (value / 32768.0);
 
     value = SDL_JoystickGetButton (joy, _index);
 #ifdef DEBUG
-    printf("SDL_JoystickGetButton value:%d:\n", value);
+    /*printf("SDL_JoystickGetButton value:%d:\n", value);*/
 #endif
     return PyInt_FromLong (value);
 }
     }
     value = SDL_JoystickNumBalls (joy);
 #ifdef DEBUG
-    printf("SDL_JoystickNumBalls value:%d:\n", value);
+    /*printf("SDL_JoystickNumBalls value:%d:\n", value);*/
 #endif
     if (_index < 0 || _index >= value) {
         return RAISE (PyExc_SDLError, "Invalid joystick trackball");
 
     value = SDL_JoystickNumHats (joy);
 #ifdef DEBUG
-    printf("SDL_JoystickNumHats value:%d:\n", value);
+    /*printf("SDL_JoystickNumHats value:%d:\n", value);*/
 #endif
     return PyInt_FromLong (value);
 }
     px = py = 0;
     value = SDL_JoystickGetHat (joy, _index);
 #ifdef DEBUG
-    printf("SDL_JoystickGetHat value:%d:\n", value);
+    /*printf("SDL_JoystickGetHat value:%d:\n", value);*/
 #endif
     if (value & SDL_HAT_UP) {
         py = 1;