public bool IsPressed(string button) { var source = Source.IsPressed(button); source ^= CurrentStickies.Contains(button); return(source); }
public void SetSticky(string button, bool isSticky) { if (isSticky) { CurrentStickies.Add(button); } else { CurrentStickies.Remove(button); } }
public bool IsSticky(string button) => CurrentStickies.Contains(button);
public void Unset(string button) { CurrentStickies.Remove(button); _axisSet.Remove(button); }