sdl - How to suppress console output in Python? -


I am using Pygame / SDL's joystick module to get input from a gamepad. Every time I call my get_hat () method, it prints on the console. This is problematic because I use the console to help debug it and now it's SDL_JoystickGetHat is full of values: 0: 60x in every second Is there any way I can disable it? Either by pressing the console output while calling the function in Pygame / SDL or by calling the function?

Edit: This is triggered due to debugging when the SDL library was compiled.

Here is a related block of code from joystick (via SVN)

  value = SDL_JoystickGetHat (fun, _index); #ifdef DEBUG printf ("SDL_JoystickGatHat value:% d: \ n", value); #endif if (value & amp; SDL_HAT_UP) { 

Looks like a problem with debugging turned on.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -