Table of Contents

Class GestureEventTranslation

Namespace
Stride.Input
Assembly
Stride.Input.dll

Event class for the Drag gesture.

public class GestureEventTranslation : GestureEvent
Inheritance
GestureEventTranslation
Derived
Inherited Members

Properties

AverageSpeed

The average translation speed (in pixels per seconds) of the drag event.

public Vector2 AverageSpeed { get; }

Property Value

Vector2

CurrentPosition

The current position of the drag event.

public Vector2 CurrentPosition { get; }

Property Value

Vector2

DeltaTranslation

The translation performed since the last event of the gesture.

public Vector2 DeltaTranslation { get; }

Property Value

Vector2

Shape

The Shape of the drag.

public GestureShape Shape { get; }

Property Value

GestureShape

StartPosition

The position where the drag event started.

public Vector2 StartPosition { get; }

Property Value

Vector2

TotalTranslation

The translation performed since the beginning of the gesture.

public Vector2 TotalTranslation { get; }

Property Value

Vector2