/// <summary> /// End a specific gestures and fire any valid gesture events /// </summary> private void CompleteGesture(CustomGestureSettings gestureType, ICustomGestureEventArgs args) { // Check the args if (args == null) { return; } // Skip gestures that are not flagged in the GestureSettings if (!GestureSettings.HasFlag(gestureType)) { return; } // Fire the cooresponding gesture event switch (gestureType) { case CustomGestureSettings.MultiTap: OnMultiTapped(args as MultiTappedEventArgs); break; case CustomGestureSettings.None: default: // This gesture type is not supported. return; } }
public GestureProgress GetGestureProgress(CustomGestureSettings gestureId) { if (!_progress.ContainsKey(gestureId)) { _progress.Add(gestureId, new GestureProgress()); } return(_progress[gestureId]); }
public void ResetProgress(CustomGestureSettings gestureId) { _progress[gestureId] = new GestureProgress(); }