zeth / inputs

Cross-platform Python support for keyboards, mice and gamepads
BSD 3-Clause "New" or "Revised" License
269 stars 87 forks source link

Joystick axes A0, A1, A2 etc are assigned depending on which axis is moved first. This means the joystick controls are different each time. #101

Open CraigBuilds opened 2 years ago

CraigBuilds commented 2 years ago

I have wrote a joystick applcation based on the jstest code. If after starting the application I move the Joystick up (Y axis), this becomes A0. If after starting the application I move the joytsick left (x axis), this becomes A0, and if after starting the aplication I move slider on the joystick, this becomes A0. It seems that the axes are discovered at runtime, and become assigned only after they have been used.

This is a problem, because the user of the joystick may move the joystick in any way when first startig the application, and then the controls would be different for them depedning on which axes was moved first.

This problem also appears in the jstest program.

Is this problem with the library, or is there a known wy to get aroud this? How can I make the controls for my application consistant every time it is run?