Пример #1
0
    public void TestMoveRightThumbStick() {
      var gamePad = new MockedGamePad();
      gamePad.MoveRightThumbStick(0.8765f, 0.4321f);
      gamePad.Update();

      GamePadState state = gamePad.GetState();
      Assert.AreEqual(new Vector2(0.8765f, 0.4321f), state.ThumbSticks.Right);
    }
Пример #2
0
        public void TestMoveRightThumbStick()
        {
            var gamePad = new MockedGamePad();

            gamePad.MoveRightThumbStick(0.8765f, 0.4321f);
            gamePad.Update();

            GamePadState state = gamePad.GetState();

            Assert.AreEqual(new Vector2(0.8765f, 0.4321f), state.ThumbSticks.Right);
        }