private void OnGestureEnded(Object src, EndGestureEventArgs e) { RaiseGestureEnd(src, e); }
protected void RaiseGestureEnded(object sender, EndGestureEventArgs e) { if (GestureEnded != null) { GestureEnded(sender, e); } }
protected virtual void RaiseGestureEnd(Object sender, EndGestureEventArgs e) { if (GestureEnd != null) { GestureEnd(this, e); } }
/// <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)); } } }