M-File Help: joystick | View code for joystick |
Input from joystick
J = joystick() returns a vector of joystick values in the range -1 to +1.
[J,b] = joystick() as above but also returns a vector of button values, either 0 (not pressed) or 1 (pressed).
© 1990-2014 Peter Corke.