Touch

Snapshot of a single touch point for the current input frame.

Namespace:

namespace Lenga\Engine\Core;

class Touch

Properties

fingerId

public readonly int $fingerId

Stable identifier for the touch point while the backend reports it.

position

public readonly Vector2 $position

Touch position in screen coordinates.

rawPosition

public readonly Vector2 $rawPosition

Raw touch position. Current raylib-backed builds use the same value as position.

deltaPosition

public readonly Vector2 $deltaPosition

Position delta since the previous frame for this touch id.

deltaTime

public readonly float $deltaTime

Unscaled frame delta used to produce this touch snapshot.

phase

public readonly TouchPhase $phase

How the touch changed during the current frame.

pressure

public readonly float $pressure

Touch pressure. Current raylib-backed builds report 1.0.

maximumPossiblePressure

public readonly float $maximumPossiblePressure

Maximum pressure value. Current raylib-backed builds report 1.0.

tapCount

public readonly int $tapCount

Tap count for the touch snapshot. Current raylib-backed builds report 1.