Kxmame
From Hackepedia
If you have a joystick plugged in, the default is /dev/js. If that doesn't work, you might want to try:
$ ls -la /dev/input/js*
to see if yours is in /dev/input. Once you've found it your joystick, change the setting in kxmame:
Settings --> Configure kxmame --> Controllers