update JoyStick code