Exemplo n.º 1
0
 public void TestMoveLeftThumbStick() {
   var gamePad = new MockedGamePad();
   gamePad.MoveLeftThumbStick(0.1234f, 0.5678f);
   gamePad.Update();
   
   GamePadState state = gamePad.GetState();
   Assert.AreEqual(new Vector2(0.1234f, 0.5678f), state.ThumbSticks.Left);
 }
Exemplo n.º 2
0
        public void TestMoveLeftThumbStick()
        {
            var gamePad = new MockedGamePad();

            gamePad.MoveLeftThumbStick(0.1234f, 0.5678f);
            gamePad.Update();

            GamePadState state = gamePad.GetState();

            Assert.AreEqual(new Vector2(0.1234f, 0.5678f), state.ThumbSticks.Left);
        }