mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
mouse forward back support on windows
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -885,9 +885,11 @@ pub fn session_send_mouse(id: String, msg: String) {
|
||||
}
|
||||
if let Some(buttons) = m.get("buttons") {
|
||||
mask |= match buttons.as_str() {
|
||||
"left" => 1,
|
||||
"right" => 2,
|
||||
"wheel" => 4,
|
||||
"left" => 0x01,
|
||||
"right" => 0x02,
|
||||
"wheel" => 0x04,
|
||||
"back" => 0x08,
|
||||
"forward" => 0x10,
|
||||
_ => 0,
|
||||
} << 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user