public bool GetInput(MobileInputKeys input) { //check all MobileButtons for (int i = 0; i < _mobileButtons.Count; i++) { if (_mobileButtons[i].TouchInput == input) { return(_mobileButtons[i].Pressed); } } //Check all swipes #region Swipes if (input == MobileInputKeys.SwipeLeft) { return(Swipe.SwipeLeft); } if (input == MobileInputKeys.SwipeRight) { return(Swipe.SwipeRight); } if (input == MobileInputKeys.SwipeUp) { return(Swipe.SwipeUp); } if (input == MobileInputKeys.SwipeDown) { return(Swipe.SwipeDown); } if (input == MobileInputKeys.Tap) { return(Swipe.Tap); } #endregion return(false); }
public bool GetInput(MobileInputKeys input, bool checkForOtherInputs) { return(GetInput(input)); }