Python Xbox Settings

Question:

I am trying to run some code that will allow the user to control with an Xbox Controller. I have it working with the Xbox 360 controller using Pygame. Then when I try to use the Xbox one controller and it is able to read the as "connected" but it doesn’t read the actual button presses.

I tried running the joystick analyzer found on the Pygame website and it shows it connected again but no button input is taken.

The code for this can be found at the bottom of this documentation page: https://www.pygame.org/docs/ref/joystick.html

Asked By: omariaz

||

Answers:

Try to check the Bluetooth settings at the time of connection. I think that’s where your problem is.

Answered By: dxDark

always check the connection between the joystick and bluetooth, thanks @dxDark for the tip

Answered By: omariaz
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.