Skip to main content

Module input

Module input 

Source
Expand description

Platform-neutral input event values and the standardized keyboard vocabulary. Key remains the logical keyboard key inside this module; the crate root re-exports it as KeyboardKey to avoid colliding with the retained widget-key trait. Platform-neutral input values.

Structs§

KeyboardEvent
Standardized keyboard values shared by every platform adapter.
Modifiers
Standardized keyboard values shared by every platform adapter.
NormalizedPressure
Pressure normalized to the closed interval [0, 1].
PointerSampleMetadata
Optional high-fidelity data attached to one pointer sample.
StylusMetadata
Stylus-only sample data with semantics shared by supported native backends.
StylusOrientation
Portable stylus orientation derived from native pen tilt.

Enums§

Code
Standardized keyboard values shared by every platform adapter.
DragStartBehavior
Flutter DragStartBehavior: where a drag or scale gesture measures its starting point from.
ImeEvent
IME composition is separate from committed text. Byte ranges always refer to valid UTF-8 boundaries in the preedit string when supplied.
InputEvent
Key
Standardized keyboard values shared by every platform adapter.
KeyState
Standardized keyboard values shared by every platform adapter.
Location
Standardized keyboard values shared by every platform adapter.
NamedKey
Standardized keyboard values shared by every platform adapter.
PointerDeviceKind
Physical device category for pointer input shared by platform adapters and raw widget routing.
PointerPhase
TrackpadGesture
Aggregate native trackpad gesture. These events deliberately do not contain synthetic touch contacts: platforms that expose only magnification, rotation, or force keep those aggregate semantics intact.
TrackpadGestureKind
TrackpadGesturePhase
WindowResizeDirection
Edge/corner selected for a compositor-owned native window resize gesture.

Constants§

BACK_POINTER_BUTTON
Conventional browser/navigation back button.
FORWARD_POINTER_BUTTON
Conventional browser/navigation forward button.
PRIMARY_POINTER_BUTTON
Primary-button bit in Incular’s portable pointer-button mask.
SECONDARY_POINTER_BUTTON
Secondary/right mouse button.
TERTIARY_POINTER_BUTTON
Tertiary/middle mouse button.

Functions§

additional_pointer_button_mask
Returns the portable mask for an additional mouse button.