modified joystick control program