Crate input_synthesis

Source

Modules§

modern_backend
synthesizer

Functions§

add_mouse_device_command
Add a synthesis mouse device.
dispatch_key_events
Simulates a sequence of key events (presses and releases) on a keyboard.
get_modern_backend_at
Similar to [get_backend] but looks for the input injection backend inside the directory dir.
keyboard_event_command
Simulates a key press of specified usage.
media_button_event_command
Simulates a media button event.
multi_finger_swipe_command
Simulates swipe with fingers starting at start_fingers, and moving to end_fingers, for a touchscreen for a touchscreen with horizontal resolution width and vertical resolution height. Finger positions should be specified in absolute coordinations, with x values normally in the range (0, width), and y values normally in the range (0, height).
multi_finger_tap_event_command
Simulates tap_event_count times to repeat the multi-finger-taps, for touchscreen with horizontal resolution width and vertical resolution height. Finger positions should be specified in absolute coordinations, with x values normally in the range (0, width), and y values normally in the range (0, height).
swipe_command
Simulates swipe from coordinates (x0, y0) to (x1, y1) for a touchscreen with horizontal resolution width and vertical resolution height, with move_event_count touch-move events in between. Positions for move events are linearly interpolated.
tap_event_command
Simulates tap_event_count taps at coordinates (x, y) for a touchscreen with horizontal resolution width and vertical resolution height. (x, y) should be specified in absolute coordinations, with x normally in the range (0, width), y normally in the range (0, height).
text_command
Simulates input being typed on a keyboard, with key_event_duration between key events.