/// <summary>
 /// Callback when a posture is in progress
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUsergestureProgress(object sender, UserGestureProgressEventArgs e)
 {
     switch (e.Gesture)
     {
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_T:
             RaiseGestureTProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_V:
             RaiseGestureVProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_A:
             RaiseGestureAProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_U:
             RaiseGestureUProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAIT:
             RaiseGestureWaitProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_HOME:
             RaiseGestureHomeProgress(e.Progress);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_STAY:
             RaiseGestureStayProgress(e.Progress);
             break;
     }
 }
Exemple #2
0
 /// <summary>
 /// Callback when the gestures recognizer engine detected a gesture is in progress
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureProgress(object sender, UserGestureProgressEventArgs e)
 {
     RaiseUserGestureProgress(e.Gesture, e.Progress);
 }