rdev 0.5.2

Listen and send keyboard and mouse events on Windows, Linux and MacOS.
Documentation
use crate::rdev::DisplayError;
use core_graphics::display::CGDisplay;

pub fn display_size() -> Result<(u64, u64), DisplayError> {
    let main = CGDisplay::main();
    Ok((main.pixels_wide(), main.pixels_high()))
}