pub fn input_sim() -> Result<InputSim>Expand description
Build an InputSim backed by the platform’s native input-synthesis API
(CGEvent on macOS, SendInput on Windows, XTest on X11). Returns
Error::Unsupported on a Wayland-only Linux session and
Error::Platform on any other platform we don’t ship a backend for.
InputSim is cheap to clone — construct one and share it.