GestureConfig Class
Namespace: Stride.InputAssembly: Stride.Input.dll
This represents the base class for all gesture configuration.
public abstract class GestureConfig
Remarks
Gesture configurations cannot be modified after being added to the input system for gesture recognition. Doing so will throw an System.InvalidOperationException.
Gesture Recognizers work with normalized coordinates belonging to [0,1]x[0,1/screenRatio] so distances, speeds and margin errors need to be expressed relatively to this coordinates system.
Name | Description | |
---|---|---|
Properties | ||
AssociatedGestureType | Specify the GestureType corresponding to this configuration. |
|
RequiredNumberOfFingers | This value represents the required number of simultaneous finger to tap to trigger the gesture. For example: 1 for single finger, and so on... |
Properties
AssociatedGestureType
Specify the GestureType corresponding to this configuration.
public GestureType AssociatedGestureType { get; protected set; }
Property Value
Type | Description |
---|---|
GestureType |
RequiredNumberOfFingers
This value represents the required number of simultaneous finger to tap to trigger the gesture. For example: 1 for single finger, and so on...
public int RequiredNumberOfFingers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This value is strictly positive.
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The given value is not in the allowed range. |
System.InvalidOperationException | Tried to modify the configuration after it has been frozen by the system. |