oa::input
input module in the OA Core public surface.
MdRust public API
Public Types
Public Functions
Public Constants & Variables
Function Documentation
Clear per-frame deltas (scroll, motion delta, press/release edges).
Return whether button is currently held.
Initialize the input backend. Idempotent. Prefers native pinch gestures and precise wheel deltas on Wayland; the touchpad stays pointer/wheel input rather than raw touch.
Access the current keyboard held-state snapshot.
Access the current pointer-state snapshot.
Last known pointer position, updated on motion, buttons, and wheel.
Return whether button went down since the last update. Remains valid until clear_for_next_frame.
Feed one raw platform event into the per-frame snapshot. Mouse motion/buttons/wheel fold into the pointer state; key down/up sets the scancode-indexed held bits. Press/release edges are derived by update. Donor: oa::input::processEvent.
Return whether button went up since the last update. Remains valid until clear_for_next_frame.
Reset all input snapshots.
Fold queued events into held/rising/falling edges. Call once per frame after all process_event calls and before reading press/release.