/// <summary>
 /// Adds the gesture.
 /// </summary>
 /// <param name="type">The gesture type.</param>
 /// <param name="gestureDefinition">The gesture definition.</param>
 public void AddGesture(GestureType type, IRelativeGestureSegment[] gestureDefinition)
 {
     Gesture gesture = new Gesture(type, gestureDefinition);
     //gesture.GestureRecognized += new EventHandler<GestureEventArgs>(this.Gesture_GestureRecognized);
     gesture.GestureRecognized += OnGestureRecognized;
     this.gestures.Add(gesture);
 }
Example #2
0
 /// <summary>
 /// Adds the gesture.
 /// </summary>
 /// <param name="name">The gesture type.</param>
 /// <param name="gestureDefinition">The gesture definition.</param>
 public void AddGesture(string name, IRelativeGestureSegment[] gestureDefinition)
 {
     Gesture gesture = new Gesture(name, gestureDefinition);
     gesture.GestureRecognized += OnGestureRecognized;
     this.gestures.Add(gesture);
 }
Example #3
0
        public void setGesturePauseCount(int newFrameCount, string gestureName)
        {
            Gesture gesture = gestures.Find((gest) => gest.name == gestureName);

            gesture.pausedFrameCount = newFrameCount;
        }