diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2021-09-15 17:40:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 08:40:22 -0700 |
commit | 83988597f4d916a37b2b0987f393ceaa007532eb (patch) | |
tree | ba5d07ccf743cb27bee77b4d6cd2128035ce365e /tmk_core/common/report.h | |
parent | 1a68feb842ebcc6a7d1aef7cd7f83865cc18fab1 (diff) | |
download | qmk_firmware-83988597f4d916a37b2b0987f393ceaa007532eb.tar.gz qmk_firmware-83988597f4d916a37b2b0987f393ceaa007532eb.zip |
Add Support for USB programmable buttons (#12950)
Diffstat (limited to 'tmk_core/common/report.h')
-rw-r--r-- | tmk_core/common/report.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/report.h b/tmk_core/common/report.h index f2223e806..1adc892f3 100644 --- a/tmk_core/common/report.h +++ b/tmk_core/common/report.h | |||
@@ -29,6 +29,7 @@ enum hid_report_ids { | |||
29 | REPORT_ID_MOUSE, | 29 | REPORT_ID_MOUSE, |
30 | REPORT_ID_SYSTEM, | 30 | REPORT_ID_SYSTEM, |
31 | REPORT_ID_CONSUMER, | 31 | REPORT_ID_CONSUMER, |
32 | REPORT_ID_PROGRAMMABLE_BUTTON, | ||
32 | REPORT_ID_NKRO, | 33 | REPORT_ID_NKRO, |
33 | REPORT_ID_JOYSTICK, | 34 | REPORT_ID_JOYSTICK, |
34 | REPORT_ID_DIGITIZER | 35 | REPORT_ID_DIGITIZER |
@@ -196,6 +197,11 @@ typedef struct { | |||
196 | } __attribute__((packed)) report_extra_t; | 197 | } __attribute__((packed)) report_extra_t; |
197 | 198 | ||
198 | typedef struct { | 199 | typedef struct { |
200 | uint8_t report_id; | ||
201 | uint32_t usage; | ||
202 | } __attribute__((packed)) report_programmable_button_t; | ||
203 | |||
204 | typedef struct { | ||
199 | #ifdef MOUSE_SHARED_EP | 205 | #ifdef MOUSE_SHARED_EP |
200 | uint8_t report_id; | 206 | uint8_t report_id; |
201 | #endif | 207 | #endif |