openloaf-rdev 0.5.1

OpenLoaf fork of rdev — listen and send keyboard / mouse events on Windows, Linux and MacOS. Adds macOS event tap auto re-enable on kCGEventTapDisabledByTimeout / ByUserInput so a temporarily disabled tap doesn't silently drop the next batch of key events.
Documentation
1
2
3
4
5
6
use rdev::display_size;
fn main() {
    let (w, h) = display_size().unwrap();

    println!("Your screen is {:?}x{:?}", w, h);
}