Fixed  a glitch in the filterJoystickInput() method.