mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
[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.
This commit is contained in:
@@ -194,14 +194,22 @@ typedef struct {
|
||||
} PACKED report_programmable_button_t;
|
||||
|
||||
#ifdef MOUSE_EXTENDED_REPORT
|
||||
# define MOUSE_REPORT_XY_MIN INT16_MIN
|
||||
# define MOUSE_REPORT_XY_MAX INT16_MAX
|
||||
typedef int16_t mouse_xy_report_t;
|
||||
#else
|
||||
# define MOUSE_REPORT_XY_MIN INT8_MIN
|
||||
# define MOUSE_REPORT_XY_MAX INT8_MAX
|
||||
typedef int8_t mouse_xy_report_t;
|
||||
#endif
|
||||
|
||||
#ifdef WHEEL_EXTENDED_REPORT
|
||||
# define MOUSE_REPORT_HV_MIN INT16_MIN
|
||||
# define MOUSE_REPORT_HV_MAX INT16_MAX
|
||||
typedef int16_t mouse_hv_report_t;
|
||||
#else
|
||||
# define MOUSE_REPORT_HV_MIN INT8_MIN
|
||||
# define MOUSE_REPORT_HV_MAX INT8_MAX
|
||||
typedef int8_t mouse_hv_report_t;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user