Code for new Joystick