Module input

Source
Expand description

XR input adapter layer: map device/pose abstractions to ailloli_ui_core::Event.

The types are intentionally host-agnostic:

  • the host can feed explicit samples (OpenXrPointerSample) each frame, or
  • implement OpenXrPointerSource for its own controller/ray/cursor type.

OpenXrInputMapper keeps lightweight pointer state (hover + pressed) so that transition events (press/release) are generated even when a source drops and reappears across frames.

Structs§

OpenXrInputMapper
Stateful mapper converting XR frame samples into ailloli_ui_core::Event.
OpenXrPointerFrame
Input frame emitted by host bridge for one poll iteration.
OpenXrPointerSample
Per-source raw pointer sample for one frame.
PointHit
Absolute hit result for one XR pointer source.

Enums§

OpenXrPointerHit
Hit state used by source/mappers.

Traits§

OpenXrPointerSource
Host-facing abstraction for streaming XR input samples.

Functions§

map_ray_to_openxr_input_events
Convenience helper mapping one frame with a shared mapper instance.
map_samples_to_openxr_input_events
Maps an already-collected frame through a shared stateful mapper.