/// <summary>
 /// Callback when a posture is lost
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureLost(object sender, UserGestureLostEventArgs e)
 {
     switch (e.Gesture)
     {
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_T:
             RaiseGestureTLost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_V:
             RaiseGestureVLost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_A:
             RaiseGestureALost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_U:
             RaiseGestureULost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAIT:
             RaiseGestureWaitLost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_HOME:
             RaiseGestureHomeLost();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_STAY:
             RaiseGestureStayLost();
             break;
     }
 }
Exemple #2
0
 /// <summary>
 /// Callback when the gestures recognizer engine lost a gesture
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureLost(object sender, UserGestureLostEventArgs e)
 {
     RaiseUserGestureLost(e.Gesture);
 }