Convert your SNES gamepad into a generic USB joystick. Read more.
Install toolchain:
pacman -S avr-gcc
... and teensy loader
yaourt teensy-loader-cli
... then build by running make. Load firmware to teensy:
teensy-loader-cli -w -mmcu=atmega32u4 gamepad.hex