Any way to change X/Y to L/R shoulder button for GB/GBA games?

X/Y button is useless in GBA games, I have an idea to map X/Y button to L/R button.
Anyone knows how to work around? Thanks.

You would probably change it in the emulator settings

I wrote a script to change XY to LR,and set it on the menu.
#!/bin/bash

sed -i ‘/input_player1_x/c\input_player1_x = “h”’ ~/.config/retroarch/retroarch.cfg
sed -i ‘/input_player1_y/c\input_player1_y = “l”’ ~/.config/retroarch/retroarch.cfg
sed -i ‘/input_player1_l/c\input_player1_l = “u”’ ~/.config/retroarch/retroarch.cfg
sed -i ‘/input_player1_r/c\input_player1_r = “i”’ ~/.config/retroarch/retroarch.cfg

1 Like