I am trying to run some code that will allow the user to control using the Xbox Controller. I am working with an Xbox 360 controller using Pygame. Then, when I try to use one Xbox controller and it can read as “connected”, but it does not read the actual button presses.
I tried to launch the joystick analyzer found on the Pygame website, and it shows that it is connected again, but the button input is not done.

The code for this can be found at the bottom of this documentation page:
https://www.pygame.org/docs/ref/joystick.html
Can anyone understand why this is?
source
share