// --------------------- public JoystickState(JoystickConfig config) { this.config = config; this.dirState = new DirectionState(); this.dirState4 = new DirectionState(); this.dirState8 = new DirectionState(); this.Reset(); }
} //!< Just changed direction from given one? (8-way) // ----------------------- //! Set this state's joystick config. // --------------------- public void SetConfig(JoystickConfig config) { this.config = config; }