macos, use private CGEventSource

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-12-29 17:13:12 +08:00
1 parent 01ade73304
commit 94cecb1860
3 files changed
+56 -14

No files matched your search

+2
View File
@@ -523,6 +523,8 @@ impl Connection {
rdev::set_dw_mouse_extra_info(enigo::ENIGO_INPUT_EXTRA_VALUE);
rdev::set_dw_keyboard_extra_info(enigo::ENIGO_INPUT_EXTRA_VALUE);
}
#[cfg(target_os = "macos")]
reset_input_ondisconn();
loop {
match receiver.recv_timeout(std::time::Duration::from_millis(500)) {
Ok(v) => match v {