fix build win

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-05-04 15:02:05 +08:00
parent 477cbff489
commit 1db40da812
2 changed files with 25 additions and 12 deletions

View File

@@ -454,7 +454,7 @@ pub mod server {
}
Mouse(v) => {
if let Ok(evt) = MouseEvent::parse_from_bytes(&v) {
crate::input_service::handle_mouse_(&evt);
crate::input_service::handle_mouse_(&evt, 0);
}
}
Key(v) => {
@@ -894,7 +894,7 @@ pub mod client {
if RUNNING.lock().unwrap().clone() {
handle_mouse_(evt).ok();
} else {
crate::input_service::handle_mouse_(evt);
crate::input_service::handle_mouse_(evt, 0);
}
}