aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-10-11 01:38:53 +0200
committerJavier <dev.git@javispedro.com>2026-10-11 01:38:53 +0200
commit041bd26ca840f5efd477b6d80dc264c6cd09a7e0 (patch)
tree8ea1db799cf91f245f017fa5f02a8e00e4eb24e5 /mousetsr.h
parent9ec2bc913cd57f6f09f79cd673b0327d9cc2fcbf (diff)
downloadvbados-041bd26ca840f5efd477b6d80dc264c6cd09a7e0.tar.gz
vbados-041bd26ca840f5efd477b6d80dc264c6cd09a7e0.zip
also store the remainder of the sensitivity division, as it smooths movement for low sensitivity values
Diffstat (limited to 'mousetsr.h')
-rw-r--r--mousetsr.h5
1 files changed, 4 insertions, 1 deletions
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". */