Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
    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;
 }
Ejemplo n.º 4
0
    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 );
    }