Added joystick detector.