How to get half-working gamepad working?
I have a ASUS Gamepad that works ok, the event device that is registered works fine - except some buttons seems to be reported as keyboard buttons leading to confusion in apps that use the gamepad [the keys reported as keyboard buttons are "dead"] and the js0 device lack the buttons.
Would it be easy to make a minimal hid kernel driver that translates the returned key? (Or adds the non-reported keys to the js0 device)
Is there any other solution that could be used?
Posted Apr 27, 2016, 2:11 PM UTC
What linux are you using?
What are the gamepad's details from the 'lsusb' command?
I am using a raspberry pi with raspbian [ uname -a: Linux retropie 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux ]
The gamepad is a bluetooth device but the output of dmesg | grep -i blue is
Raspbian might have qjoypad in its repos. If your gamepad buttons are detected at all, you could use that to remap (or "quickset") them to something useful.
This would probably have been perfect, except the issue is that I am not using X - but instead running programs that take their input via SDL.
crdlb suggested MoltenGamepad which seems to be like qjoypad but on a lower level. We'll see if I get that working