5 using SiliconStudio.Core.Mathematics;
7 namespace SiliconStudio.
Paradox.Input
22 public float MinimumDragDistance
24 get {
return minimumDragDistance; }
30 throw new ArgumentOutOfRangeException(
"value");
32 minimumDragDistance = value;
36 private float minimumDragDistance;
46 public Vector2 AllowedErrorMargins
48 get {
return allowedErrorMargins; }
53 if(value.X < 0 || value.Y< 0)
54 throw new ArgumentOutOfRangeException(
"value");
56 allowedErrorMargins = value;
60 private Vector2 allowedErrorMargins;
68 get {
return dragShape; }
92 AssociatedGestureType = GestureType.Drag;
94 DragShape = dragShape;
95 RequiredNumberOfFingers = 1;
96 AllowedErrorMargins = 0.02f * Vector2.One;
97 MinimumDragDistance = 0.02f;
100 internal override GestureRecognizer CreateRecognizerImpl(
float screenRatio)
102 return new GestureRecognizerDrag(
this, screenRatio);
Represents a two dimensional mathematical vector.