implemented detection of disconnected joystick