Moved event processing within the JoystickState class