/// <summary> /// Adds a new complex gesture to the gestures controller. /// </summary> /// <param name="gesture">Gesture to be added</param> public void AddGesture(KinectGesture gesture) { // Bind the controller "gesture recognized" event trigger to the // added gesture. gesture.KinectGestureRecognized += new EventHandler<KinectGestureEventArgs>(this.KinectGesture_KinectGestureRecognized); this.recognizableGestures.Add(gesture); }
/// <summary> /// Adds a new complex gesture to the gestures controller. /// </summary> /// <param name="type">Type of the gesture to be added</param> /// <param name="frames">Frames that represent the complex gesture</param> public void AddGesture(KinectGestureType type, IKinectGestureFrame[] frames) { KinectGesture gesture = new KinectGesture(type, frames); // Bind the controller "gesture recognized" event trigger to the // added gesture. gesture.KinectGestureRecognized += new EventHandler<KinectGestureEventArgs>(this.KinectGesture_KinectGestureRecognized); this.recognizableGestures.Add(gesture); }