start of joystick support