GestureConfigLongPress Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Configuration class the Long Press gestures.
public sealed class GestureConfigLongPress : GestureConfig
Remarks
A longPress gesture can be composed of 1 or more fingers.
Name | Description | |
---|---|---|
Constructors | ||
GestureConfigLongPress() | Create a default LongPress gesture configuration. |
|
Properties | ||
MaximumTranslationDistance | The value represents the maximum distance a finger can translate during the longPress action. |
|
RequiredPressTime | The time the user has to hold his finger on the screen to trigger the gesture. |
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
Type | Description |
---|---|
System.Single |
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
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The value has to be positive. |
System.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
Type | Description |
---|---|
System.TimeSpan |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Tried to modify the configuration after it has been frozen by the system. |