DESCRIPTION

This patch to snes9x-1.42 allows the user to specify additional joystick axes 
to listen to for movement events in Unix. This is for joysticks that have more 
than one directional control, ie: a direction pad and an analog stick similar 
to the playstation controller. 

Generally, snes9x only listens to events on axis 0 for horizontal movement and
1 for vertical movement. This patch adds the options -joyhaxis and -joyvaxis 
which take a number argument which is an additional axis to listen to for
horizontal or vertical events. For example, specifying -joyhaxis 4 and 
-joyvaxis 5 when using a Logitech Dual Action Gamepad lets the user use the
analog stick and the control pad both to control movement.

HOW TO DETERMINE WHAT AXES TO USE

In Linux, you can use the program 'jstest' to determine what axes your 
directional pad is using. Type:

jstest --event /dev/input/js0

replacing /dev/input/js0 with your joystick device, and watch the output. Press
up and down, and record the number argument for the events that get printed, and
use this number as the argument to -joyvaxis. Press left and right and use that
number as the argument to -joyhaxis.

HOW TO APPLY THIS PATCH

Change to the snes9x-1.42-src/snes9x directory and execute: 

patch -p1 < ../patch-joystickaxis.diff


