added setMode to Joystick