5 using SiliconStudio.Core.Mathematics;
7 namespace SiliconStudio.
Paradox.Input
20 public Vector2 AllowedErrorMargins
22 get {
return allowedErrorMargins; }
27 if (value.X < 0 || value.Y < 0)
28 throw new ArgumentOutOfRangeException(
"value");
30 allowedErrorMargins = value;
33 private Vector2 allowedErrorMargins;
41 get {
return flickShape; }
56 public float MinimumAverageSpeed
58 get {
return minimumAverageSpeed; }
65 throw new ArgumentOutOfRangeException(
"value");
67 minimumAverageSpeed = value;
71 private float minimumAverageSpeed;
77 public float MinimumFlickLength
79 get {
return minimumFlickLength; }
85 throw new ArgumentOutOfRangeException(
"value");
87 minimumFlickLength = value;
90 private float minimumFlickLength;
106 AssociatedGestureType = GestureType.Flick;
108 FlickShape = flickShape;
109 RequiredNumberOfFingers = 1;
110 MinimumAverageSpeed = 0.4f;
111 MinimumFlickLength = 0.04f;
112 AllowedErrorMargins = 0.02f * Vector2.One;
115 internal override GestureRecognizer CreateRecognizerImpl(
float screenRatio)
117 return new GestureRecognizerFlick(
this, screenRatio);
Represents a two dimensional mathematical vector.