Beispiel #1
0
        public void TestLeftTrigger()
        {
            var gamePad = new MockedGamePad();

            gamePad.PushLeftTrigger(0.1357f);
            gamePad.Update();

            GamePadState state = gamePad.GetState();

            Assert.AreEqual(0.1357f, state.Triggers.Left);
        }
    public void TestLeftTrigger() {
      var gamePad = new MockedGamePad();
      gamePad.PushLeftTrigger(0.1357f);
      gamePad.Update();

      GamePadState state = gamePad.GetState();
      Assert.AreEqual(0.1357f, state.Triggers.Left);
    }