Пример #1
0
 /// <summary>
 /// Callback when a gesture is detected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureDetected(object sender, UserGestureDetectedEventArgs e)
 {
     switch (e.Gesture)
     {
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_SWIPE_LEFT :
             DebugLog.DebugTraceLog("SwipeLeft detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_SWIPE_RIGHT :
             DebugLog.DebugTraceLog("SwipeRight detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAVE :
             DebugLog.DebugTraceLog("Wave detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_PUSH :
             DebugLog.DebugTraceLog("Push detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_MAXIMIZE:
             DebugLog.DebugTraceLog("Maximize detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_MINIMIZE:
             DebugLog.DebugTraceLog("Minimize detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_A :
             DebugLog.DebugTraceLog("Posture A detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_HOME :
             DebugLog.DebugTraceLog("Posture Home detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_STAY :
             DebugLog.DebugTraceLog("Posture Stay detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_T :
             DebugLog.DebugTraceLog("Posture T detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_U :
             DebugLog.DebugTraceLog("Posture U detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_V :
             DebugLog.DebugTraceLog("Posture V detected", false);
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAIT :
             DebugLog.DebugTraceLog("Posture Wait detected", false);
             break;
     }
 }
Пример #2
0
 /// <summary>
 /// Callback when a gesture is detected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureDetected(object sender, UserGestureDetectedEventArgs e)
 {
     switch (e.Gesture)
     {
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_SWIPE_LEFT:
             RaiseGestureSwipeLeftDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_SWIPE_RIGHT:
             RaiseGestureSwipeRightDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAVE:
             RaiseGestureWaveDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_PUSH:
             RaiseGesturePushDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_MAXIMIZE:
             RaiseGestureMaximizeDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_MINIMIZE:
             RaiseGestureMinimizeDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_T:
             RaiseGestureTDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_V:
             RaiseGestureVDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_A:
             RaiseGestureADetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_U:
             RaiseGestureUDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_WAIT:
             RaiseGestureWaitDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_HOME:
             RaiseGestureHomeDetected();
             break;
         case EnumKinectGestureRecognize.KINECT_RECOGNIZE_STAY:
             RaiseGestureStayDetected();
             break;
     }
 }
Пример #3
0
 /// <summary>
 /// Callback when the gestures recognizer engine detected a gesture
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnUserGestureDetected(object sender, UserGestureDetectedEventArgs e)
 {
     RaiseUserGestureDetected(e.Gesture);
 }