input_synthesis

Function multi_finger_tap_event_command

Source
pub async fn multi_finger_tap_event_command(
    fingers: Vec<Touch>,
    width: u32,
    height: u32,
    tap_event_count: usize,
    duration: Duration,
) -> Result<(), Error>
Expand description

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).

duration is divided equally between multi-touch-down and multi-touch-up pairs, while the transition between these is immediate.