mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 04:21:28 +03:00
@@ -136,7 +136,10 @@ impl MouseControllable for Enigo {
|
|||||||
MouseButton::Right => MOUSEEVENTF_RIGHTDOWN,
|
MouseButton::Right => MOUSEEVENTF_RIGHTDOWN,
|
||||||
MouseButton::Back => MOUSEEVENTF_XDOWN,
|
MouseButton::Back => MOUSEEVENTF_XDOWN,
|
||||||
MouseButton::Forward => MOUSEEVENTF_XDOWN,
|
MouseButton::Forward => MOUSEEVENTF_XDOWN,
|
||||||
_ => unimplemented!(),
|
_ => {
|
||||||
|
log::info!("Unsupported button {:?}", button);
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
match button {
|
match button {
|
||||||
MouseButton::Back => XBUTTON1 as _,
|
MouseButton::Back => XBUTTON1 as _,
|
||||||
@@ -163,7 +166,10 @@ impl MouseControllable for Enigo {
|
|||||||
MouseButton::Right => MOUSEEVENTF_RIGHTUP,
|
MouseButton::Right => MOUSEEVENTF_RIGHTUP,
|
||||||
MouseButton::Back => MOUSEEVENTF_XUP,
|
MouseButton::Back => MOUSEEVENTF_XUP,
|
||||||
MouseButton::Forward => MOUSEEVENTF_XUP,
|
MouseButton::Forward => MOUSEEVENTF_XUP,
|
||||||
_ => unimplemented!(),
|
_ => {
|
||||||
|
log::info!("Unsupported button {:?}", button);
|
||||||
|
return;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
match button {
|
match button {
|
||||||
MouseButton::Back => XBUTTON1 as _,
|
MouseButton::Back => XBUTTON1 as _,
|
||||||
|
|||||||
Reference in New Issue
Block a user