Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu 13.10 and I have problem with my gamepad

I have gamepad that have buttons all messed up can I Disable some buttons?? That My joystick does not have.

So here is how it looks

enter image description here

This is how my other joystick looks like but some times the first joystick looks like this as well.

enter image description here

Any ideas how to make it work or just disable some buttons that my joystick does not have and the software thinks I am pressing??

share|improve this question

1 Answer 1

You can reorder the buttons and axis with jstest-gtk or jscal, however those changes are only visible to games using the old Linux joydev interface, most modern games use the evdev interface which doesn't allow any direct configuration. For games based on SDL1 you can however force the use of the old interface with:

export SDL_JOYSTICK_DEVICE=/dev/input/js0

But this only works for a single joystick, the second one is ignored.

With SDL2 you can configure your joystick directly, it's a bit fiddly doing it manually, but you can do it via Steams BigPicture mode and it will automatically pass on the configuration.

It's also possible to create a cleaned up virtual joystick via the Linux uinput interface. xboxdrv is one tool that allows that, see the man page section EVDEV OPTION. Keyboard/mouse emulation is of course also possible.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.