The OI Reference Guide availible from
http://ifirobotics.com/oi.shtml shows the pinouts of the joystick ports and the appropriate variables on pages 7-10.
The ones listed are the only ones connected. If you have a joystick with switches on other pins, you will have to make your own adapter so that they map to the correct pins.