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:
@@ -556,27 +556,39 @@ pub fn handle_mouse_(evt: &MouseEvent) {
|
||||
en.mouse_move_to(evt.x, evt.y);
|
||||
}
|
||||
1 => match buttons {
|
||||
1 => {
|
||||
0x01 => {
|
||||
allow_err!(en.mouse_down(MouseButton::Left));
|
||||
}
|
||||
2 => {
|
||||
0x02 => {
|
||||
allow_err!(en.mouse_down(MouseButton::Right));
|
||||
}
|
||||
4 => {
|
||||
0x04 => {
|
||||
allow_err!(en.mouse_down(MouseButton::Middle));
|
||||
}
|
||||
0x08 => {
|
||||
allow_err!(en.mouse_down(MouseButton::Back));
|
||||
}
|
||||
0x10 => {
|
||||
allow_err!(en.mouse_down(MouseButton::Forward));
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
2 => match buttons {
|
||||
1 => {
|
||||
0x01 => {
|
||||
en.mouse_up(MouseButton::Left);
|
||||
}
|
||||
2 => {
|
||||
0x02 => {
|
||||
en.mouse_up(MouseButton::Right);
|
||||
}
|
||||
4 => {
|
||||
0x04 => {
|
||||
en.mouse_up(MouseButton::Middle);
|
||||
}
|
||||
0x08 => {
|
||||
en.mouse_up(MouseButton::Back);
|
||||
}
|
||||
0x10 => {
|
||||
en.mouse_up(MouseButton::Forward);
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
3 | 4 => {
|
||||
|
||||
Reference in New Issue
Block a user