Skip to main content

Module runner_common

Module runner_common 

Source
Expand description

Shared runner helpers extracted from duplicated desktop/web/android App impls.

Structs§

TouchResult
Raw touch result without dispatch - caller handles dispatch_action to avoid double-borrow.

Functions§

handle_touch_raw
map_mouse_button
Map winit MouseButton -> PointerButton.
on_cursor_moved
CursorMoved helper - returns cursor + whether inspector hover updated.
on_ime
Ime dispatch helper.
on_keyboard_input
Shared inspector toggle + runtime dispatch. Returns true if event consumed / needs redraw.
on_modifiers_changed
Update Modifiers from winit state - shared.
on_mouse_wheel
MouseWheel helper - converts delta to px and dispatches.
on_touch
HACK: Legacy wrapper that dispatches gestures inline (use handle_touch_raw when caller needs to avoid double-borrow of self containing rt).
on_touch_with_ime
Touch handler that also syncs IME for focused textfields (web/android). Returns whether a redraw is needed. Probably shared for desktop once winit unifies touch.