Esempio n. 1
0
 private bool buttonNotHeldLongEnough(ButtonAlias button)
 {
     if (!_repeatHoldTimes.ContainsKey(button.GetAssociation()) && button.GetHoldableRepeat() >= 0)
     {
         _repeatHoldTimes.Add(button.GetAssociation(), SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds + button.GetHoldableRepeat());
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
 private bool buttonNotHeldLongEnough(ButtonAlias button)
 {
     if (!_repeatHoldTimes.ContainsKey(button.GetAssociation()) && button.GetHoldableRepeat() >= 0)
     {
         _repeatHoldTimes.Add(button.GetAssociation(), SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds + button.GetHoldableRepeat());
         return false;
     }
     return true;
 }
Esempio n. 3
0
 private bool allowOneButtonPress(ButtonAlias button)
 {
     if (_holdTimes.ContainsKey(button.GetAssociation()) && _holdTimes[button.GetAssociation()].CompareTo(SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds) < 0 && !_repeatHoldTimes.ContainsKey(button.GetAssociation()) && button.GetHoldableRepeat() >= 0)
     {
         // Remove, re-add, rinse, repeat!
         _repeatHoldTimes.Add(button.GetAssociation(), SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds + button.GetHoldableRepeat());
         return false;
     }
     return true;
 }
Esempio n. 4
0
 private bool allowOneButtonPress(ButtonAlias button)
 {
     if (_holdTimes.ContainsKey(button.GetAssociation()) && _holdTimes[button.GetAssociation()].CompareTo(SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds) < 0 && !_repeatHoldTimes.ContainsKey(button.GetAssociation()) && button.GetHoldableRepeat() >= 0)
     {
         // Remove, re-add, rinse, repeat!
         _repeatHoldTimes.Add(button.GetAssociation(), SystemMain.CurrentGameTime.TotalRealTime.TotalSeconds + button.GetHoldableRepeat());
         return(false);
     }
     return(true);
 }