Table of Contents

Class TouchEventArgs

Namespace
Stride.UI
Assembly
Stride.UI.dll

Provides data for touch input events.

public class TouchEventArgs : RoutedEventArgs
Inheritance
TouchEventArgs
Inherited Members

Properties

Action

Gets the action that occurred.

public TouchAction Action { get; }

Property Value

TouchAction

ScreenPosition

Gets the position of the touch on the screen. Position is normalized between [0,1]. (0,0) is the left top corner, (1,1) is the right bottom corner.

public Vector2 ScreenPosition { get; }

Property Value

Vector2

ScreenTranslation

Gets the translation of the touch on the screen since last triggered event (in normalized units). (1,1) represent a translation of the top left corner to the bottom right corner.

public Vector2 ScreenTranslation { get; }

Property Value

Vector2

Timestamp

Gets the time when this event occurred.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan

WorldPosition

Gets the position of the touch in the UI virtual world space.

public Vector3 WorldPosition { get; }

Property Value

Vector3

WorldTranslation

Gets the translation of the touch in the UI virtual world space.

public Vector3 WorldTranslation { get; }

Property Value

Vector3