I recently got a wired (USB) XBox 360 gamepad. It was nearly plug-and-play on my laptop running Ubuntu 12.04. However, some control axes were mixed up. I used jstest-gtk to reconfigure the mapping and jscal-store to (supposedly) save the new configuration. However, when I run Xonotic or Nexuiz (First Person Shooters), they still uses the original mixed-up mapping. How do I make these games recognize the new configuration? BTW, I'm more concerned about Xonotic working, I really couldn't care less about Nexuiz. Please no rants about why I should stick with a mouse and keyboard for gaming. [:-) Thanks in advance.
The problem is that jstest-gtk only changes the mapping of the joystick device, i.e.
The quickest workaround is setting an environment variable:
This will force SDL based applications to use the old joystick device and thus respect the mapping. It won't help with non-SDL applications.
Another alternative is xboxdrv, it's a userspace Xbox360 driver that allows a wide variety of configuration options at the driver level (including keyboard andd mouse emulation). This will work for all games.
In Xonotic's advanced settings, there are two variables:
I run this script instead of running the game directly, and it adds the two lines I need for joystick support.