private void OnGestureBegining(Object src, BeginGestureEventArgs e) { RaiseGestureBegin(src, e); }
protected void RaiseGestureBegining(object sender, BeginGestureEventArgs e) { if (GestureBegining != null) { GestureBegining(sender, e); } }
protected virtual void RaiseGestureBegin(Object sender, BeginGestureEventArgs e) { if (GestureBegin != null) { GestureBegin(this, e); } }
/// <summary> /// Callback when gestures checker detect a gesture begining /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnGestureBegining(object sender, BeginGestureEventArgs e) { // If event emit by a gesture if (e.Gesture != EnumGesture.GESTURE_NONE) { if (m_refFlagGesturesBegin.ContainsKey(e.Gesture)) { m_refFlagGesturesBegin[e.Gesture] = true; } } // If event emit by a posture else if (PropertiesPluginKinect.Instance.SavePosturerecognize != EnumPosture.POSTURE_NONE) { if (PropertiesPluginKinect.Instance.SavePosturerecognize != e.Posture) { RaiseUserGestureProgress(ConvertPostureEnum(e.Posture), 0f); } } }