예제 #1
0
 private void OnGestureEnded(Object src, EndGestureEventArgs e)
 {
     RaiseGestureEnd(src, e);
 }
예제 #2
0
 protected void RaiseGestureEnded(object sender, EndGestureEventArgs e)
 {
     if (GestureEnded != null)
     {
         GestureEnded(sender, e);
     }
 }
예제 #3
0
 protected virtual void RaiseGestureEnd(Object sender, EndGestureEventArgs e)
 {
     if (GestureEnd != null)
     {
         GestureEnd(this, e);
     }
 }
예제 #4
0
 /// <summary>
 /// Callback when gestures checker detect a gesture ending
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnGestureEnded(object sender, EndGestureEventArgs e)
 {
     // if event emit by a gesture
     if (e.Gesture != EnumGesture.GESTURE_NONE)
     {
         if (m_refFlagGesturesBegin.ContainsKey(e.Gesture))
         {
             m_refFlagGesturesBegin[e.Gesture] = false;
         }
     }
     // if event emit by a posture
     else if (e.Posture != EnumPosture.POSTURE_NONE)
     {
         if (PropertiesPluginKinect.Instance.SavePosturerecognize != e.Posture)
         {
             RaiseUserGestureLost(ConvertPostureEnum(e.Posture));
         }
     }
 }