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
OpenXrPointerSourcefor 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§
- Open
XrInput Mapper - Stateful mapper converting XR frame samples into
ailloli_ui_core::Event. - Open
XrPointer Frame - Input frame emitted by host bridge for one poll iteration.
- Open
XrPointer Sample - Per-source raw pointer sample for one frame.
- Point
Hit - Absolute hit result for one XR pointer source.
Enums§
- Open
XrPointer Hit - Hit state used by source/mappers.
Traits§
- Open
XrPointer Source - 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.