private void ChangeKeyTriggerToTouchPadTrigger(int index)
        {
            var touchpadTrigger = new TouchPressTrigger(State.Pressed);

            inputEditorViewModel.availableCommands.GetAllTriggers(inputEditorViewModel.SelectedCommand)
            [index] = touchpadTrigger;
        }
 public void ConditionMatched(Type resolver)
 {
     Start(resolver, (InputCommands input) =>
     {
         var trigger = new TouchPressTrigger(State.Pressing);
         Assert.False(trigger.ConditionMatched(input));
     });
 }
示例#3
0
 public void CheckForEquility()
 {
     var trigger = new TouchPressTrigger(State.Pressing);
     var otherTrigger = new TouchPressTrigger(State.Released);
     Assert.AreNotEqual(trigger, otherTrigger);
     Assert.AreNotEqual(trigger.GetHashCode(), otherTrigger.GetHashCode());
     var copyOfTrigger = new TouchPressTrigger(State.Pressing);
     Assert.AreEqual(trigger, copyOfTrigger);
     Assert.AreEqual(trigger.GetHashCode(), copyOfTrigger.GetHashCode());
 }
示例#4
0
        public void CreateFromString()
        {
            var trigger = new TouchPressTrigger("Pressed");

            Assert.AreEqual(State.Pressed, trigger.State);
        }
示例#5
0
        public void Create()
        {
            var trigger = new TouchPressTrigger(State.Pressed);

            Assert.AreEqual(State.Pressed, trigger.State);
        }
		public void CreateFromString()
		{
			var trigger = new TouchPressTrigger("Pressed");
			Assert.AreEqual(State.Pressed, trigger.State);
		}
		public void Create()
		{
			var trigger = new TouchPressTrigger(State.Pressed);
			Assert.AreEqual(State.Pressed, trigger.State);
		}