Optimized JoystickHandler class