Module touch

Source
Expand description

Bounded logical-pixel touch capture. Layout order sets hit-test priority; a captured finger keeps its role until end/cancel, even outside its region.

Immediate controls are unchanged. Opt in with TouchSurface::set_gesture_profile and feed caller-supplied seconds to TouchSurface::handle_timed to observe gestures separately from tick-consumed actions. No clock, queue, new input channel or platform ABI is involved.

Structs§

Control
Event
GestureObservation
One accepted event’s observation; never inserted into ActionMap.
GestureProfile
Logical-pixel distances and supplied-time seconds for opt-in recognition.
TouchEdit
TouchLayoutDiagnostics
Bounded diagnostics for an already resolved layout, indexed by authored slot.
TouchLayoutSettings
TouchSurface

Enums§

GestureError
Separate recognition errors keep the existing exhaustive InputError intact.
GestureKind
Classification carried only by the explicit observation return value.
Output
Phase
Region

Constants§

MAX_TOUCHES
MAX_TOUCH_CONTROLS