Пример #1
0
 public override bool ConditionMatched(InputCommands inputCommands)
 {
     bool changedPosition = inputCommands.mouse.IsAvailable &&
         inputCommands.mouse.Position != lastPosition && lastPosition != UnusedPosition;
     lastPosition = inputCommands.mouse.Position;
     return changedPosition;
 }
Пример #2
0
 public abstract bool ConditionMatched(InputCommands inputCommands);
Пример #3
0
 public static async void ExecuteAction(InputCommands command)
 {           
     await ConnectionManager.ExecuteRPCRequest("Input." + command.ToString());
 }
Пример #4
0
 private async void fire(InputCommands command)
 {
     while (isHolding)
     {
         await Input.ExecuteAction(command);
         await Task.Delay(250);
     }
 }
Пример #5
0
 public void AddTouchCallback()
 {
     var input = new InputCommands(null, null, null, null);
     input.Add(touch => {});
     Assert.AreEqual(1, input.Count);
 }