added new JoyStick routines