/// <summary> /// Method to trigger event for cirle gestures /// </summary> /// <param name="GestureName">The name of the gesture performed</param> /// <param name="GestureId">The ID of the gesture</param> /// <param name="GestureState">The state of the gesture in the frame</param> /// <param name="GestureNormal">The vector of the gesture</param> /// <param name="GesturePointable">The object used to make the gesture</param> void OnCircleGesture(string GestureName, int GestureId, string GestureState, float GestureProgress, Vector GestureNormal, Pointable GesturePointable) { GestureArgs = new GestureEvent(GestureName, GestureId, GestureState, GestureProgress, GestureNormal, GesturePointable); if (GestureMade != null) { GestureMade(this, GestureArgs); } }
/// <summary> /// Method to trigger event for swipe gestures /// </summary> /// <param name="GestureName">The name of the gesture performed</param> /// <param name="GestureId">The ID of the gesture</param> /// <param name="GestureState">The state of the gesture in the frame</param> /// <param name="GesturePosition">The position of the gesture in the frame (vector)</param> /// <param name="GestureDirection">The direction of the gesture in the frame (vector)</param> void OnGesture(string GestureName, int GestureId, string GestureState, float[] GesturePosition, float[] GestureDirection) { GestureArgs = new GestureEvent(GestureName, GestureId, GestureState, GesturePosition, GestureDirection); if (GestureMade != null) { GestureMade(this, GestureArgs); } }
/// <summary> /// Method to receive events from LeapListener and pass on to GestureInterface /// </summary> /// <param name="sender">Sending object</param> /// <param name="e">Custom EventArgs object (GestureEvent)</param> public void ProcessGesture(object sender, GestureEvent e) { GestureArgs = e; if (GestureInterface != null) { GestureInterface(this, GestureArgs); } }
/// <summary> /// Method to trigger event for swipe gestures /// </summary> /// <param name="GestureName">The name of the gesture performed</param> /// <param name="GestureId">The ID of the gesture</param> /// <param name="GestureState">The state of the gesture in the frame</param> /// <param name="GesturePosition">The position of the gesture in the frame (vector)</param> /// <param name="GestureDirection">The direction of the gesture in the frame (vector)</param> void OnGesture(string GestureName, int GestureId, string GestureState, float[] GesturePosition, float[] GestureDirection) { GestureArgs = new GestureEvent(GestureName, GestureId, GestureState, GesturePosition, GestureDirection); if (GestureMade != null) GestureMade(this, GestureArgs); }
/// <summary> /// Method to receive events from LeapListener and pass on to GestureInterface /// </summary> /// <param name="sender">Sending object</param> /// <param name="e">Custom EventArgs object (GestureEvent)</param> public void ProcessGesture(object sender, GestureEvent e) { GestureArgs = e; if (GestureInterface != null) GestureInterface(this, GestureArgs); }