pub struct MouseParams {Show 19 fields
pub tick: Duration,
pub min_steps: usize,
pub fitts_a_ms: f64,
pub fitts_b_ms: f64,
pub bend: Range<f64>,
pub bend_cap_px: f64,
pub overshoot_threshold_px: f64,
pub overshoot: Range<f64>,
pub overshoot_cap_px: f64,
pub overshoot_lateral_px: f64,
pub correction_bend_cap_px: f64,
pub detour_chance: f64,
pub detour_waypoints: RangeInclusive<usize>,
pub detour_min_px: f64,
pub inset: f64,
pub first_start_px: Range<f64>,
pub hover_ms: Range<u64>,
pub press_ms: Range<u64>,
pub wiggle_chance: f64,
}Expand description
Every tunable number of the mouse model.
Fields§
§tick: DurationInterval between two reported pointer positions (the mouse polling rate as the page sees it).
min_steps: usizeFewest points in one leg, however short.
fitts_a_ms: f64Fitts’ law, milliseconds: T = a + b * log2(distance / width + 1).
fitts_b_ms: f64§bend: Range<f64>Control-point offset from the straight line, as a fraction of the distance, capped in pixels.
bend_cap_px: f64§overshoot_threshold_px: f64Moves longer than this overshoot the target, then correct.
overshoot: Range<f64>How far past the target, as a fraction of the distance, capped.
overshoot_cap_px: f64§overshoot_lateral_px: f64Sideways offset of the overshoot point, and the bend cap of the short correcting leg.
correction_bend_cap_px: f64§detour_chance: f64Chance that a move wanders through waypoints before the target, how many, and the smallest spread used for short moves.
detour_waypoints: RangeInclusive<usize>§detour_min_px: f64§inset: f64Click points fall inside the box, at least this fraction away from every edge.
first_start_px: Range<f64>Distance of the starting point when the pointer position is unknown.
hover_ms: Range<u64>Pause on the target before pressing, and button hold time.
press_ms: Range<u64>§wiggle_chance: f64Chance of a 1 px drift while the button is held.