protected override void OnBegin(DragGesture gesture, FingerGestures.IFingerList touches) { gesture.Position = touches.GetAveragePosition(); gesture.StartPosition = touches.GetAverageStartPosition(); gesture.DeltaMove = gesture.Position - gesture.StartPosition; gesture.LastDelta = Vector2.zero; gesture.LastPos = gesture.Position; }
protected override void OnBegin(PointCloudGesture gesture, FingerGestures.IFingerList touches) { gesture.StartPosition = touches.GetAverageStartPosition(); gesture.Position = touches.GetAveragePosition(); gesture.RawPoints.Clear(); gesture.RawPoints.Add(new Point(0, gesture.Position)); }
protected override void OnBegin(SwipeGesture gesture, FingerGestures.IFingerList touches) { gesture.StartPosition = touches.GetAverageStartPosition(); gesture.Position = touches.GetAveragePosition(); gesture.Move = Vector3.zero; gesture.MoveCounter = 0; gesture.Deviation = 0; gesture.Direction = FingerGestures.SwipeDirection.None; }
protected override void OnBegin(SwipeGesture gesture, FingerGestures.IFingerList touches) { gesture.StartPosition = touches.GetAverageStartPosition(); gesture.Position = touches.GetAveragePosition(); gesture.Move = Vector3.zero; gesture.MoveCounter = 0; gesture.Deviation = 0; gesture.Direction = FingerGestures.SwipeDirection.None; //Debug.Log( "BeginSwipe: " + EventMessageName + " touches.Count=" + FingerGestures.Touches.Count ); }