summaryrefslogtreecommitdiffstats
path: root/quantum/pointing_device.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-06-08 18:39:16 -0700
committerGitHub <noreply@github.com>2022-06-08 18:39:16 -0700
commit0ab51ee29d6e980a50b27f122a10d0f7de4b1aed (patch)
tree8e4d62aa24feccfd8f9c51bf64b1fc7391ff0534 /quantum/pointing_device.h
parent84944df6a635da6502117e5b245113296babb39e (diff)
Add support for large Mouse Reports (#16371)
Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'quantum/pointing_device.h')
-rw-r--r--quantum/pointing_device.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/pointing_device.h b/quantum/pointing_device.h
index 5c0eaeaf34..1e5ef9590c 100644
--- a/quantum/pointing_device.h
+++ b/quantum/pointing_device.h
@@ -75,6 +75,16 @@ typedef enum {
POINTING_DEVICE_BUTTON8,
} pointing_device_buttons_t;
+#ifdef MOUSE_EXTENDED_REPORT
+# define XY_REPORT_MIN INT16_MIN
+# define XY_REPORT_MAX INT16_MAX
+typedef int32_t clamp_range_t;
+#else
+# define XY_REPORT_MIN INT8_MIN
+# define XY_REPORT_MAX INT8_MAX
+typedef int16_t clamp_range_t;
+#endif
+
void pointing_device_init(void);
void pointing_device_task(void);
void pointing_device_send(void);