コード例 #1
0
ファイル: JoystickState.cs プロジェクト: moh76/pro_test
        // ---------------------
        public JoystickState(JoystickConfig config)
        {
            this.config = config;

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


            this.Reset();
        }
コード例 #2
0
ファイル: JoystickState.cs プロジェクト: moh76/pro_test
        }                                                                                               //!< Just changed direction from given one? (8-way)

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