public void RemoveDoubleTap(string _name) { ControlButton b = this[_name]; b._IsDoubleTapped = false; b._IsPressed = true; b._GotPressed = true; }
public void DoubleTapOnce(string _name) { ControlButton b = this[_name]; b._IsDoubleTapped = false; b._GotDoubleTapped = true; b._IsPressed = false; b._IsDown = false; }
public void PressOnce(string _name) { ControlButton b = this[_name]; b._IsPressed = false; b._GotPressed = true; b._IsDoubleTapped = false; b._IsDown = false; b._NumberOfPresses++; }
public ControlButton this[string _name] { get { if (!_Buttons.ContainsKey(_name)) { _Buttons[_name] = new ControlButton(); } return(_Buttons[_name]); } }
internal void _Press(string _name) { ControlButton b = this[_name]; if (!b.IsDown) { if (b._DoubleTapCountdown > 0) { b._DoubleTapCountdown = 0; b._IsDoubleTapped = true; b._GotDoubleTapped = true; } else { b._DoubleTapCountdown = this.DoubleTapCountdown; b._IsPressed = true; b._GotPressed = true; } } b._IsDown = true; b._NumberOfPresses++; }