diff options
Diffstat (limited to 'keyboard/mbed_onekey/HIDKeyboard.h')
| -rw-r--r-- | keyboard/mbed_onekey/HIDKeyboard.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/keyboard/mbed_onekey/HIDKeyboard.h b/keyboard/mbed_onekey/HIDKeyboard.h index b00c97b9b..4ebe610a6 100644 --- a/keyboard/mbed_onekey/HIDKeyboard.h +++ b/keyboard/mbed_onekey/HIDKeyboard.h | |||
| @@ -3,16 +3,7 @@ | |||
| 3 | #include "stdint.h" | 3 | #include "stdint.h" |
| 4 | #include "stdbool.h" | 4 | #include "stdbool.h" |
| 5 | #include "USBHID.h" | 5 | #include "USBHID.h" |
| 6 | 6 | #include "report.h" | |
| 7 | |||
| 8 | typedef union { | ||
| 9 | uint8_t raw[8]; | ||
| 10 | struct { | ||
| 11 | uint8_t mods; | ||
| 12 | uint8_t reserved; | ||
| 13 | uint8_t keys[6]; | ||
| 14 | }; | ||
| 15 | } __attribute__ ((packed)) report_keyboard_t; | ||
| 16 | 7 | ||
| 17 | 8 | ||
| 18 | class HIDKeyboard : public USBDevice { | 9 | class HIDKeyboard : public USBDevice { |
