Joystick axis definition in simulation

I’ve started using simulation using the sim GUI, however I’ve noticed that some of the axes are swapped, such as the right stick and triggers. I’ve seen this older post, that says to check “map gamepad” to fix this issue, however I don’t see this when selecting my Xbox one gamepad.

I’m running Manjaro.

If the “Map Gamepad” checkbox doesn’t appear, that means GLFW (the library we use to talk to joysticks/gamepads) isn’t recognizing it as a gamepad device. Unfortunately this is just something that doesn’t work too well across platforms (joysticks/gamepads are very platform-specific) and is difficult to make robust in all cases. However, the X-Box One pad is in the GLFW database, so I’m not quite sure why it’s not working.

Correction, it is actually a Xbox Series gamepad.

Hmm, there’s a lot more Xbox Series controllers listed in the SDL database (https://github.com/gabomdq/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt#L1628-L1644) than there is in GLFW (https://github.com/glfw/glfw/blob/master/src/mappings.h#L987-L991), so it looks like GLFW needs to update their list.

And unfortunately, GLFW seems to be very slow to respond to PRs… I’ve had this PR open since March to fix a crash on Windows: Joystick hat: treat invalid combinations as nothing pressed by PeterJohnson · Pull Request #2291 · glfw/glfw · GitHub. I may end up needing to fork GLFW so we can integrate the updates we want to have; I’ve also been considering implementing our own joystick/gamepad support to address these (and other) issues.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.