tighten visibility and clear the remaining mechanical lint noise
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user