zsnes explodes when you attempt to configure a dualshock 3 button in
the gui. This lets you convert whatever button/joystick numbers
reported by your favorite input driver for a dualshock 3 to the
internal button codes used by zsnes.
This will work for arbitrary joysticks. You must redefine axis-count
and button-count to match your device.