GestureEvent Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Base class for the gesture events.
System.Object →
GestureEvent
Derived from GestureEvent: GestureEventComposite GestureEventLongPress GestureEventTap GestureEventTranslation
public abstract class GestureEvent
Name | Description | |
---|---|---|
Properties | ||
DeltaTime | The time elapsed between the two last events of the gesture. |
|
NumberOfFinger | The number of fingers involved in the gesture. |
|
State | The state of the gesture. |
|
TotalTime | The time elapsed since the beginning of the gesture. |
|
Type | The type of the gesture. |
Properties
DeltaTime
The time elapsed between the two last events of the gesture.
public TimeSpan DeltaTime { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Remarks
This value is equal to TotalTime for discrete gestures.
NumberOfFinger
The number of fingers involved in the gesture.
public int NumberOfFinger { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
State
The state of the gesture.
public GestureState State { get; }
Property Value
Type | Description |
---|---|
GestureState |
TotalTime
The time elapsed since the beginning of the gesture.
public TimeSpan TotalTime { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Type
The type of the gesture.
public GestureType Type { get; }
Property Value
Type | Description |
---|---|
GestureType |