[QUOTE=paalfe;27446]Try adding these udev rules to “/etc/udev/rules.d/10-local.rules” and reboot.
# Add the ID_INPUT_JOYSTICK attribute to the device so SDL picks up on it
SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SFC30 GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SFC30 GamePad Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
The udev rules above is needed in Lakka (OpenElec) to make SDL pick up the GamePad(s), this may also be the case in Arch Linux.
For the udev rules for all the 8Bitdo devices - http://libretro.com/forums/showthread.php?t=2347&page=3&p=27263&viewfull=1#post27263.[/QUOTE]
That’s it! Well done Sir, those udev rules - exactly as you pasted them here - got it working in both START and START+R modes. Thank you so much for this.
I’ve done some further digging so I might understand this in more detail. There’s an interesting page here: https://hg.libsdl.org/SDL/file/704a0bfecf75/README-linux.txt
sudo udevadm info --query=all --name=input/eventXX
If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don’t see it, you need to set up an udev rule to force this variable.
I wasn’t seeing that, so the information you provided makes perfect sense; it’s telling udev to mark the input device as a joystick so SDL knows to use it as such. It’s a tad obscure though and I don’t think I would have found this without your help, so thanks again. I owe you a pint.