tighten visibility and clear the remaining mechanical lint noise

This commit is contained in:
2026-09-21 00:44:25 +03:00
parent 1332600148
commit 03b2fec744
11 changed files with 158 additions and 172 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ pub struct ClickRecorder {
clicks: Arc<Mutex<Vec<Click>>>,
}
pub fn start() -> ClickRecorder {
pub(crate) fn start() -> ClickRecorder {
let running = Arc::new(AtomicBool::new(true));
let clicks: Arc<Mutex<Vec<Click>>> = Arc::new(Mutex::new(Vec::new()));
let running_clone = running.clone();
@@ -56,7 +56,7 @@ pub fn start() -> ClickRecorder {
let pressed = (state.cast_unsigned() & 0x8000) != 0;
if pressed && !last_pressed[i] {
let mut pt = POINT::default();
if unsafe { GetCursorPos(&mut pt) }.is_ok() {
if unsafe { GetCursorPos(&raw mut pt) }.is_ok() {
let click = Click {
time_secs: start.elapsed().as_secs_f64(),
x: pt.x,