diff options
author | eynsai <47629346+eynsai@users.noreply.github.com> | 2024-10-06 05:26:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 11:26:55 +0200 |
commit | 2cb35373c6ecc4341b538cc5ad37accf3e5030e4 (patch) | |
tree | bd578fdeceb031dc54e43a8274255c58781a0db0 /tmk_core/protocol/report.h | |
parent | bf6de46d7fd9ab185c57c1ebb9372ea980846040 (diff) |
Extended wheel reports (#24422)
extended wheel reports
Diffstat (limited to 'tmk_core/protocol/report.h')
-rw-r--r-- | tmk_core/protocol/report.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h index 0e4f6e9def..37c8ea48f1 100644 --- a/tmk_core/protocol/report.h +++ b/tmk_core/protocol/report.h @@ -199,6 +199,12 @@ typedef int16_t mouse_xy_report_t; typedef int8_t mouse_xy_report_t; #endif +#ifdef WHEEL_EXTENDED_REPORT +typedef int16_t mouse_hv_report_t; +#else +typedef int8_t mouse_hv_report_t; +#endif + typedef struct { #ifdef MOUSE_SHARED_EP uint8_t report_id; @@ -210,8 +216,8 @@ typedef struct { #endif mouse_xy_report_t x; mouse_xy_report_t y; - int8_t v; - int8_t h; + mouse_hv_report_t v; + mouse_hv_report_t h; } PACKED report_mouse_t; typedef struct { |