aboutsummaryrefslogtreecommitdiff
path: root/quantum/pointing_device/pointing_device.h
diff options
context:
space:
mode:
authoreynsai <47629346+eynsai@users.noreply.github.com>2024-10-06 05:26:55 -0400
committerGitHub <noreply@github.com>2024-10-06 11:26:55 +0200
commit2cb35373c6ecc4341b538cc5ad37accf3e5030e4 (patch)
treebd578fdeceb031dc54e43a8274255c58781a0db0 /quantum/pointing_device/pointing_device.h
parentbf6de46d7fd9ab185c57c1ebb9372ea980846040 (diff)
Extended wheel reports (#24422)
extended wheel reports
Diffstat (limited to 'quantum/pointing_device/pointing_device.h')
-rw-r--r--quantum/pointing_device/pointing_device.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/quantum/pointing_device/pointing_device.h b/quantum/pointing_device/pointing_device.h
index 1cd4b0b5e6..b0f8533d6d 100644
--- a/quantum/pointing_device/pointing_device.h
+++ b/quantum/pointing_device/pointing_device.h
@@ -95,11 +95,21 @@ typedef enum {
#ifdef MOUSE_EXTENDED_REPORT
# define XY_REPORT_MIN INT16_MIN
# define XY_REPORT_MAX INT16_MAX
-typedef int32_t clamp_range_t;
+typedef int32_t xy_clamp_range_t;
#else
# define XY_REPORT_MIN INT8_MIN
# define XY_REPORT_MAX INT8_MAX
-typedef int16_t clamp_range_t;
+typedef int16_t xy_clamp_range_t;
+#endif
+
+#ifdef WHEEL_EXTENDED_REPORT
+# define HV_REPORT_MIN INT16_MIN
+# define HV_REPORT_MAX INT16_MAX
+typedef int32_t hv_clamp_range_t;
+#else
+# define HV_REPORT_MIN INT8_MIN
+# define HV_REPORT_MAX INT8_MAX
+typedef int16_t hv_clamp_range_t;
#endif
void pointing_device_init(void);