Help

#9 Linux joystick support fix

While trying to play with my joystick I was unable to use the
digital pad. My joystick has 2 analog axis and 1 digital one, a bit
like the Gamecube pads. Unfortunately the digital axis is
mapped to the axes 4/5 which aren't handled by Zsnes because
of a hard-coded limitation to 4 axes in the code.

The patch below (over 1.36) fixes this issue and allow any
number of axes for the joystick. It worked fine for me, but you
might want to check whether it can't introduce an overflow on
the pressed global array. I couldn't find its declaration
anywhere.