Windows 10 pygame joystick can not read only one of the axis (z-rotation)

559 Views Asked by At

I am running Windows 10. I want to use pygame to read the (Thrustmaster steering wheel) joystick axis and buttons. I can read all the values correctly expect one axis (z-rotation, which I read from the default game controller for windows). That axis can be detected, but the value the program returns does not change is I press the pedal. There are two pedals, and the other one works perfectly fine.

Disclaim:

  1. The wheel is working, because I can read all the axis from the windows game controller (default one)

  2. Before, I ran an older version of Windows 10 on another laptop, the same code works Perfectly fine. When I tried it on my new bought PC, it does not work. Could it be the case, some stupid windows update cause the problem? How should I resolve this? I can not rollback Windows, because it is a fresh new PC, there is no return point for me.

Any insight on this will be grateful.

1

There are 1 best solutions below

3
On

Make sure that you installed pygame correctly, it may not necessarily be the fault of Windows Updates. You should also ensure that you're using Python 3.6 for pygame.

https://www.pygame.org/wiki/GettingStarted#Windows%20installation

You may also want to check out their IRC for help assuming that there is an issue with Windows Updates, it could be a bug in their software. There's more info on that here:

https://www.pygame.org/wiki/info