Exemple #1
0
        public bool IsPressed(string button)
        {
            var source = Source.IsPressed(button);

            source ^= CurrentStickies.Contains(button);
            return(source);
        }
Exemple #2
0
 public void SetSticky(string button, bool isSticky)
 {
     if (isSticky)
     {
         CurrentStickies.Add(button);
     }
     else
     {
         CurrentStickies.Remove(button);
     }
 }
Exemple #3
0
 public bool IsSticky(string button) => CurrentStickies.Contains(button);
Exemple #4
0
 public void Unset(string button)
 {
     CurrentStickies.Remove(button);
     _axisSet.Remove(button);
 }