mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 20:09:59 +03:00
Compare commits
1 Commits
connection
...
log-keypre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0f73ea7ba |
@@ -160,6 +160,7 @@ impl InputCapture {
|
||||
_ => self.pressed_keys.remove(&scancode),
|
||||
};
|
||||
}
|
||||
log::info!("pressed keys: {:?}", self.pressed_keys);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -217,13 +217,15 @@ impl InputEmulation {
|
||||
return false;
|
||||
};
|
||||
|
||||
if state == 0 {
|
||||
let ret = if state == 0 {
|
||||
// currently pressed => can release
|
||||
pressed_keys.remove(&key)
|
||||
} else {
|
||||
// currently not pressed => can press
|
||||
pressed_keys.insert(key)
|
||||
}
|
||||
};
|
||||
log::info!("client {handle}: pressed keys: {:?}", pressed_keys);
|
||||
ret
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user