off-by-one error in joysticks.
Merge pull request #847 from sorlok/joystick_fix

off-by-one error in joysticks.