Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdev Fails in MacOS Under Remote Control #131

Open
lie5860 opened this issue Apr 18, 2024 · 1 comment
Open

rdev Fails in MacOS Under Remote Control #131

lie5860 opened this issue Apr 18, 2024 · 1 comment

Comments

@lie5860
Copy link

lie5860 commented Apr 18, 2024

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)
    }
}
@div02-afk
Copy link

div02-afk commented Aug 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants