A two-axis input device which can return a range of values on both axes.
Inheritance: I2DInput
Exemple #1
0
        internal Xbox360GamePad(PlayerIndex playerIndex)
        {
            for (int i = 0; i < mLastButtonPush.Length; i++)
            {
                mLastButtonPush[i] = -1;
            }


            mPlayerIndex = playerIndex;
            mLeftStick   = new AnalogStick();
            mRightStick  = new AnalogStick();

            mLeftTrigger  = new AnalogButton();
            mRightTrigger = new AnalogButton();
        }
 public AnalogStickVertical(AnalogStick analogStick)
 {
     this.analogStick = analogStick;
 }
Exemple #3
0
 public AnalogStickHorizontal(AnalogStick analogStick)
 {
     this.analogStick = analogStick;
 }
        internal Xbox360GamePad(PlayerIndex playerIndex)
        {
            for (int i = 0; i < mLastButtonPush.Length; i++)
            {
                mLastButtonPush[i] = -1;
            }


            mPlayerIndex = playerIndex;
            mLeftStick = new AnalogStick();
            mRightStick = new AnalogStick();

            mLeftTrigger = new AnalogButton();
            mRightTrigger = new AnalogButton();
        }
 public AnalogStickHorizontal(AnalogStick analogStick)
 {
     this.analogStick = analogStick;
 }