Table of Contents

Class GestureConfigLongPress

Namespace
Stride.Input
Assembly
Stride.Input.dll

Configuration class the Long Press gestures.

public sealed class GestureConfigLongPress : GestureConfig
Inheritance
GestureConfigLongPress
Inherited Members

Remarks

A longPress gesture can be composed of 1 or more fingers.

Constructors

GestureConfigLongPress()

Create a default LongPress gesture configuration.

public GestureConfigLongPress()

Remarks

Single finger and 1 second long press.

Properties

MaximumTranslationDistance

The value represents the maximum distance a finger can translate during the longPress action.

public float MaximumTranslationDistance { get; set; }

Property Value

float

Remarks

By increasing this value, the user allows small movements of the fingers during the long press. By decreasing this value, the user forbids any movements during the long press.

Exceptions

ArgumentOutOfRangeException

The value has to be positive.

InvalidOperationException

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

RequiredPressTime

The time the user has to hold his finger on the screen to trigger the gesture.

public TimeSpan RequiredPressTime { get; set; }

Property Value

TimeSpan

Exceptions

InvalidOperationException

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