rdev icon indicating copy to clipboard operation
rdev copied to clipboard

rdev Fails in MacOS Under Remote Control

Open lie5860 opened this issue 1 year ago • 1 comments

I've been trying to use rdev on a Mac, and I conducted tests using the code below. I found that under default circumstances on macOS, the code works properly. However, if the computer is being remotely accessed through Apple's built-in screen sharing software or similar remote software like todesk, event capturing fails.

use rdev::{listen, Event};
fn callback(event: Event) {
    println!("My callback {:?}", event);
    match event.name {
        Some(string) => println!("User wrote {:?}", string),
        None => (),
    }
}
fn main() {
    // This will block.
    if let Err(error) = listen(callback) {
        println!("Error: {:?}", error)
    }
}

lie5860 avatar Apr 18 '24 05:04 lie5860

If the app crashes on keypress, check this out rdev breaks the app on key press

div02-afk avatar Aug 04 '24 12:08 div02-afk