Skip to main content

to_absolute

Function to_absolute 

Source
pub(crate) fn to_absolute(
    sx: i32,
    sy: i32,
    vx: i32,
    vy: i32,
    vw: u32,
    vh: u32,
) -> (i32, i32)
Expand description

A screen point as SendInput wants it with MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_VIRTUALDESK: 0..=65535 across the whole virtual screen, which starts at (vx, vy) and is vw×vh pixels.