Crate input_synthesis

Source

Modules§

Functions§

  • Add a synthesis mouse device.
  • Simulates a sequence of key events (presses and releases) on a keyboard.
  • Similar to [get_backend] but looks for the input injection backend inside the directory dir.
  • Simulates a key press of specified usage.
  • Simulates a media button event.
  • 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).
  • 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).
  • 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.
  • 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).
  • Simulates input being typed on a keyboard, with key_event_duration between key events.