Example #1
0
        // ---------------------
        public JoystickState(JoystickConfig config)
        {
            this.config = config;

            this.dirState  = new DirectionState();
            this.dirState4 = new DirectionState();
            this.dirState8 = new DirectionState();


            this.Reset();
        }
Example #2
0
        }                                                                                               //!< Just changed direction from given one? (8-way)

        // -----------------------
        //! Set this state's joystick config.
        // ---------------------
        public void     SetConfig(JoystickConfig config)
        {
            this.config = config;
        }