GestureEventTranslation Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Event class for the Drag gesture.
Derived from GestureEventTranslation: GestureEventDrag GestureEventFlick
public class GestureEventTranslation : GestureEvent
Name | Description | |
---|---|---|
Properties | ||
AverageSpeed | The average translation speed (in pixels per seconds) of the drag event. |
|
CurrentPosition | The current position of the drag event. |
|
DeltaTranslation | The translation performed since the last event of the gesture. |
|
Shape | The Shape of the drag. |
|
StartPosition | The position where the drag event started. |
|
TotalTranslation | The translation performed since the beginning of the gesture. |
Properties
AverageSpeed
The average translation speed (in pixels per seconds) of the drag event.
public Vector2 AverageSpeed { get; }
Property Value
Type | Description |
---|---|
Vector2 |
CurrentPosition
The current position of the drag event.
public Vector2 CurrentPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
DeltaTranslation
The translation performed since the last event of the gesture.
public Vector2 DeltaTranslation { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Shape
The Shape of the drag.
public GestureShape Shape { get; }
Property Value
Type | Description |
---|---|
GestureShape |
StartPosition
The position where the drag event started.
public Vector2 StartPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
TotalTranslation
The translation performed since the beginning of the gesture.
public Vector2 TotalTranslation { get; }
Property Value
Type | Description |
---|---|
Vector2 |