summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2025-04-13 18:36:13 +0200
committerGitHub <noreply@github.com>2025-04-13 18:36:13 +0200
commita7bf8e64a584c9a0930f4aa701a09a6e1de7e117 (patch)
tree4f166d22c20c85e48d35e49d61bea24ce98c71e1 /tmk_core
parentd0611b0468049f5aba69f1273fb94b8375934237 (diff)
[chore]: move and rename mouse/scroll min/max defines (#25141)
* protocol: move {XY/HV}_REPORT_{MIN,MAX} into report.h ..to allow easier re-use in other code implementations. * protocol: rename {XY/HV}_REPORT_{MIN/MAX} to MOUSE_REPORT_{XY/HV}_{MIN/MAX} ..to avoid naming collisions.
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/report.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h
index d854f51d5c..9053b0bb3f 100644
--- a/tmk_core/protocol/report.h
+++ b/tmk_core/protocol/report.h
@@ -194,14 +194,22 @@ typedef struct {
194} PACKED report_programmable_button_t; 194} PACKED report_programmable_button_t;
195 195
196#ifdef MOUSE_EXTENDED_REPORT 196#ifdef MOUSE_EXTENDED_REPORT
197# define MOUSE_REPORT_XY_MIN INT16_MIN
198# define MOUSE_REPORT_XY_MAX INT16_MAX
197typedef int16_t mouse_xy_report_t; 199typedef int16_t mouse_xy_report_t;
198#else 200#else
201# define MOUSE_REPORT_XY_MIN INT8_MIN
202# define MOUSE_REPORT_XY_MAX INT8_MAX
199typedef int8_t mouse_xy_report_t; 203typedef int8_t mouse_xy_report_t;
200#endif 204#endif
201 205
202#ifdef WHEEL_EXTENDED_REPORT 206#ifdef WHEEL_EXTENDED_REPORT
207# define MOUSE_REPORT_HV_MIN INT16_MIN
208# define MOUSE_REPORT_HV_MAX INT16_MAX
203typedef int16_t mouse_hv_report_t; 209typedef int16_t mouse_hv_report_t;
204#else 210#else
211# define MOUSE_REPORT_HV_MIN INT8_MIN
212# define MOUSE_REPORT_HV_MAX INT8_MAX
205typedef int8_t mouse_hv_report_t; 213typedef int8_t mouse_hv_report_t;
206#endif 214#endif
207 215