I ran into a very weird button remapping issue that’s driving me insane.
When I use the default button mapping, everything is ok, but for a project I’m working on (a Scratch arcade) I would like to remap the buttons to keypresses S - D - F and J - K - L for buttons 1 - 2 - 3 and 4 - 5 - 6.
So I looked up the Linux keyboard codes, and added the following to /boot/config.txt :
It’s not the keyboard layout (I picked non conflicting keys to cover that aspect :p), it’s apparently a bug in how overrides are handled in /boot/config.txt …
I decided to change the default mapping in the picade.dts file to my preferred keys :
Then recompiled the overlay (removed the picade.dtbo file & ran the install script again), and then everything works fine as well.
So it looks like the overrides in /boot/config.txt have issues (makes me wonder if maybe overlay settings are limited to a specific string length & overflows are ignored?).
We received the arcade cabinet as a gift (we just had to add a new panel for the buttons & joystick and mount the X-HAT & RPi inside the cabinet - you can see them just below the monitor in the picture).