You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: