Code cleaning in JoystickHandler