Skip to main content

Module synthetic_input

Module synthetic_input 

Expand description

Deterministic window input shared by native scenarios, headless driving, test control and tests: what they deliver in place of a device.

Modules§

pointer
Pointer gestures use the same logical coordinates as widget inspection. The host’s input scale converts those coordinates to physical winit input.

Enums§

NativeKey
Supported named keys for deterministic native input scenarios.
PointerAction
One hardware-shaped input edge, never a direct action or state mutation.

Functions§

char_key
The character key text pressed, typing it.
cursor_moved
key_event
A key event for logical_key from no particular physical key: standard location, not a repeat. Adjust the public fields for anything else.
key_input
key going down or up as keyboard input, carrying its text on press.
key_press
logical_key pressed, typing text.
keyboard_input
event delivered to the window as real keyboard input.
mouse_input
mouse_press
The left button going down.
mouse_release
The left button coming up.
mouse_wheel
A wheel turn of x and y lines (positive y is up, away from the person).
named_key
The named key key pressed; it types nothing.