feat: support track pad scroll on flutter

This commit is contained in:
xxrl
2022-11-20 22:46:27 +08:00
parent edfb22d9c2
commit 13fd55557b
5 changed files with 71 additions and 4 deletions

View File

@@ -156,6 +156,7 @@ pub fn session_reconnect(id: String) {
pub fn session_toggle_option(id: String, value: String) {
if let Some(session) = SESSIONS.write().unwrap().get_mut(&id) {
log::warn!("toggle option {}", value);
session.toggle_option(value);
}
}
@@ -907,6 +908,7 @@ pub fn session_send_mouse(id: String, msg: String) {
"down" => 1,
"up" => 2,
"wheel" => 3,
"trackpad" => 4,
_ => 0,
};
}