Commits

Anonymous committed 927e5ac Draft

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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.