pub fn mouse_path(
start: Point,
end: Point,
mode: InputMode,
seed: u64,
) -> Vec<MouseStep>Expand description
Synthesize a left-click mouse path from start to end.
Returns the event sequence in chronological order. Each step’s
at is offset from time-zero (the call instant on the caller’s
side).
InputMode::Human: Bezier path sampled at 16 ms, Fitts-bounded total duration capped at 1.2 s, overshoot + correction near the endpoint, hover-then-press-then-release-then-click ending.InputMode::Careful: oneMoveatend, thenDown/Up/Clickat the same point with no delay between them.InputMode::Robotic: empty vec.
seed selects the deterministic stream of random choices (control
point offset direction, hover duration, press dwell, overshoot
jitter). Same seed + same inputs produces a bit-identical output.