sudo apt-get install joystick
Then run jstest and test each button (write down the value for each button):
jstest /dev/input/js0
(replace js0 with js1, js2, etc. if you have multiple joysticks plugged in)
Press Ctrl-C to exit.
nano /home/pi/pimame/emulators/pisnes/snes9x.cfg
[keyboard]
[Joystick]
#joystick options
QUIT=0
to QUIT=999
CTRL+O to save
CTRL+X to exit
It looks like you're new here. If you want to get involved, click one of these buttons!