Table of Contents

Class GestureConfig

Namespace
Stride.Input
Assembly
Stride.Input.dll

This represents the base class for all gesture configuration.

public abstract class GestureConfig
Inheritance
GestureConfig
Derived

Remarks

Gesture configurations cannot be modified after being added to the input system for gesture recognition. Doing so will throw an 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.

Properties

AssociatedGestureType

Specify the GestureType corresponding to this configuration.

public GestureType AssociatedGestureType { get; protected set; }

Property Value

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

int

Remarks

This value is strictly positive.

Exceptions

ArgumentOutOfRangeException

The given value is not in the allowed range.

InvalidOperationException

Tried to modify the configuration after it has been frozen by the system.