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§
- Native
Key - Supported named keys for deterministic native input scenarios.
- Pointer
Action - One hardware-shaped input edge, never a direct action or state mutation.
Functions§
- char_
key - The character key
textpressed, typing it. - cursor_
moved - key_
event - A key event for
logical_keyfrom no particular physical key: standard location, not a repeat. Adjust the public fields for anything else. - key_
input keygoing down or up as keyboard input, carrying its text on press.- key_
press logical_keypressed, typingtext.- keyboard_
input eventdelivered 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
xandylines (positiveyis up, away from the person). - named_
key - The named key
keypressed; it types nothing.