From 041bd26ca840f5efd477b6d80dc264c6cd09a7e0 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 11 Oct 2026 01:38:53 +0200 Subject: also store the remainder of the sensitivity division, as it smooths movement for low sensitivity values --- mousetsr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mousetsr.h') diff --git a/mousetsr.h b/mousetsr.h index 93503c5..e190805 100644 --- a/mousetsr.h +++ b/mousetsr.h @@ -192,7 +192,10 @@ typedef struct tsrdata { struct point pos; /** Current remainder of movement that does not yet translate to an entire pixel * (8ths of pixel). */ - struct point pos_frac; + struct point pos_pixel_frac; + /** Current remainder of movement that does not yet translate to one sensitivity unit (4096) + * @see apply_sensitivity */ + struct point pos_sens_frac; /** Current delta movement (in mickeys) since the last report. */ struct point delta; /** Last absolute position (to compute a delta for relative motion emulation). Using -1 for "none". */ -- cgit v1.2.3