swap key renewal

This commit is contained in:
sjpark
2023-02-11 10:41:06 +09:00
parent f438dd9fd0
commit b29236da06
4 changed files with 102 additions and 66 deletions

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.