swap key renewal

This commit is contained in:
sjpark committed 2023-02-11 10:49:34 +09:00
1 parent f438dd9fd0
commit b29236da06
4 files changed
+102 -66

No files matched your search

+2
View File
@@ -1702,6 +1702,7 @@ pub fn send_mouse(
if check_scroll_on_mac(mask, x, y) {
mouse_event.modifiers.push(ControlKey::Scroll.into());
}
interface.swap_modifier_mouse(&mut mouse_event);
msg_out.set_mouse_event(mouse_event);
interface.send(Data::Message(msg_out));
}
@@ -1928,6 +1929,7 @@ pub trait Interface: Send + Clone + 'static + Sized {
fn is_force_relay(&self) -> bool {
self.get_login_config_handler().read().unwrap().force_relay
}
fn swap_modifier_mouse(&self, msg : &mut hbb_common::protos::message::MouseEvent) {}
}
/// Data used by the client interface.