diff options
| author | Javier <dev.git@javispedro.com> | 2026-10-11 01:38:53 +0200 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-10-11 01:38:53 +0200 |
| commit | 041bd26ca840f5efd477b6d80dc264c6cd09a7e0 (patch) | |
| tree | 8ea1db799cf91f245f017fa5f02a8e00e4eb24e5 /mousetsr.h | |
| parent | 9ec2bc913cd57f6f09f79cd673b0327d9cc2fcbf (diff) | |
| download | vbados-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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". */ |
