diff options
author | Drashna Jaelre <drashna@live.com> | 2022-06-08 18:39:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 18:39:16 -0700 |
commit | 0ab51ee29d6e980a50b27f122a10d0f7de4b1aed (patch) | |
tree | 8e4d62aa24feccfd8f9c51bf64b1fc7391ff0534 /tmk_core/protocol/report.h | |
parent | 84944df6a635da6502117e5b245113296babb39e (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 'tmk_core/protocol/report.h')
-rw-r--r-- | tmk_core/protocol/report.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h index 7bbeb78af7..735ccdb4a1 100644 --- a/tmk_core/protocol/report.h +++ b/tmk_core/protocol/report.h @@ -201,15 +201,25 @@ typedef struct { uint32_t usage; } __attribute__((packed)) report_programmable_button_t; +#ifdef MOUSE_EXTENDED_REPORT +typedef int16_t mouse_xy_report_t; +#else +typedef int8_t mouse_xy_report_t; +#endif + typedef struct { #ifdef MOUSE_SHARED_EP uint8_t report_id; #endif uint8_t buttons; - int8_t x; - int8_t y; - int8_t v; - int8_t h; +#ifdef MOUSE_EXTENDED_REPORT + int8_t boot_x; + int8_t boot_y; +#endif + mouse_xy_report_t x; + mouse_xy_report_t y; + int8_t v; + int8_t h; } __attribute__((packed)) report_mouse_t; typedef struct { |