Пример #1
0
 /// <summary>
 /// Constructs a DragGesture gesture.
 /// </summary>
 /// <param name="recognizer">The gesture recognizer.</param>
 /// <param name="touch">The touch that started this gesture.</param>
 public DragGesture(DragGestureRecognizer recognizer, Touch touch) : base(recognizer)
 {
     FingerId      = touch.fingerId;
     StartPosition = touch.position;
     Position      = StartPosition;
 }
 /// <summary>
 /// Constructs a DragGesture gesture.
 /// </summary>
 /// <param name="recognizer">The gesture recognizer.</param>
 /// <param name="touch">The touch that started this gesture.</param>
 public DragGesture(DragGestureRecognizer recognizer, InputSystem.EnhancedTouch.Touch touch)
     : this(recognizer, new CommonTouch(touch))
 {
 }
 DragGesture(DragGestureRecognizer recognizer, CommonTouch touch) : base(recognizer)
 {
     fingerId      = touch.fingerId;
     startPosition = touch.position;
     position      = startPosition;
 }
 /// <summary>
 /// Constructs a DragGesture gesture.
 /// </summary>
 /// <param name="recognizer">The gesture recognizer.</param>
 /// <param name="touch">The touch that started this gesture.</param>
 public DragGesture(DragGestureRecognizer recognizer, Touch touch)
     : this(recognizer, new CommonTouch(touch))
 {
 }