Skip to main content

Module input

Module input 

Source

Structs§

GamepadId
Opaque gamepad handle. Backend-local index, stable for the connection lifetime. Survives across frames; invalid after GamepadEvent::Disconnected.
KeyEvent
Modifiers
PointerEvent
PointerId
TextInputEvent

Enums§

GamepadAxis
Analog axes, normalized to -1.0..=1.0. Triggers report 0.0..=1.0.
GamepadButton
Standard-layout buttons (SDL gamecontroller mapping positions). Backends translate hardware codes to these; unknown buttons are dropped.
GamepadEvent
ImeEvent
InputEvent
InputMode
Key
KeyEventType
PointerButton
PointerEventKind
PointerEventPass
PointerKind

Functions§

input_mode
Current input mode (Compose InputModeManager.inputMode).
is_focus_visible
true when focus indication should paint (focused and keyboard mode).
request_input_mode
Request a new input mode. Returns true if the mode changed.
set_input_mode_default
Force the global default input mode (no frame request). Prefer request_input_mode from event handlers.