Table of Contents

Struct Touch

Namespace
Xui.Core.Abstract.Events
Assembly
Core.dll

Represents a single touch point within a multi-touch input event.

public struct Touch
Inherited Members

Remarks

This structure contains identifying and positional data for a specific finger or contact point on a touch surface. Multiple Touch instances may be reported in a single event when handling gestures or complex touch interactions.

Fields

Index

A unique index identifying this touch point during its lifetime. Typically assigned by the platform and reused after release.

public int Index

Field Value

int

Phase

The current phase of the touch (e.g., began, moved, ended).

public TouchPhase Phase

Field Value

TouchPhase

Position

The current position of the touch in logical window coordinates.

public Point Position

Field Value

Point

Radius

The estimated contact radius of the touch, in logical units. Used for gesture recognition or pressure emulation.

public NFloat Radius

Field Value

NFloat