/// <summary> /// constructor of data from a gesture event /// </summary> /// <param name="e"></param> public Datas(GestureEventArgs e) { //BODY if (e.eventType == EventType.BODY) { this.GestureDatas = new GestureDatas(new BodyGestureEvent(e.eventData.bodyGestureEventData.bodyGestureName), null, e.eventData.contextGestureDatas); } //HANDS else if (e.eventType == EventType.HAND) { this.GestureDatas = new GestureDatas(null, new HandGestureDatas(e.eventData.handGestureEventData.handGestureName, e.eventData.handGestureEventData.handType), e.eventData.contextGestureDatas); } }
/// <summary> /// happend when a gesture is recognised /// </summary> /// <param name="sender">the sender of the event args</param> /// <param name="e">the gesture event args</param> private void Gestures_GestureRecognised(object sender, GestureEventArgs e) { //gesture had been recognised this.EventRecognised(this, new QlikMoveEventArgs(e.eventType, e.timeStamp, new Datas(e))); }