sdl

How to suppress console output in Python?

How to suppress console output in Python? Question: I’m using Pygame/SDL’s joystick module to get input from a gamepad. Every time I call its get_hat() method it prints to the console. This is problematic since I use the console to help me debug and now it gets flooded with SDL_JoystickGetHat value:0: 60 times every second. …

Total answers: 8