Esempio n. 1
0
        public bool HasGesture(GestureType gestureType, Rectangle area, out GestureSample gesture)
        {
            for (int i = 0; i < _gestures.Count; i++)
            {
                if (gestureType.ContainsFlag(_gestures[i].GestureType) && area.Contains(_gestures[i].Position))
                {
                    gesture = _gestures[i];
                    return true;
                }
            }

            gesture = default(GestureSample);
            return false;
        }
Esempio n. 2
0
 public IEnumerable<GestureSample> GetGesturesAt(GestureType gestureType, Rectangle area)
 {
     for (int i = 0; i < _gestures.Count; i++)
     {
         if (gestureType.ContainsFlag(_gestures[i].GestureType) && area.Contains(_gestures[i].Position))
         {
             yield return _gestures[i];
         }
     }
 }
Esempio n. 3
0
        public bool HasGesture(GestureType gestureType, out GestureSample gesture)
        {
            for (int i = 0; i < _gestures.Count; i++)
            {
                if (gestureType.ContainsFlag(_gestures[i].GestureType))
                {
                    gesture = _gestures[i];
                    return true;
                }
            }

            gesture = default(GestureSample);
            return false;
        }