diff options
author | Ryan <fauxpark@gmail.com> | 2024-11-10 09:10:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-09 14:10:10 -0800 |
commit | a3cfb1dab7679a774d8aa09f7b609f3302dad73d (patch) | |
tree | 315e8c7a35ae390b56f84def0d37b867bfa428c7 /tmk_core/protocol/report.h | |
parent | 69093f6de9b551bd84ff0a8eabcccca73026d55e (diff) |
Joystick: add support for 8-way hat switch (#24515)
Diffstat (limited to 'tmk_core/protocol/report.h')
-rw-r--r-- | tmk_core/protocol/report.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/protocol/report.h b/tmk_core/protocol/report.h index 37c8ea48f1..d854f51d5c 100644 --- a/tmk_core/protocol/report.h +++ b/tmk_core/protocol/report.h @@ -246,6 +246,11 @@ typedef struct { joystick_axis_t axes[JOYSTICK_AXIS_COUNT]; #endif +#ifdef JOYSTICK_HAS_HAT + int8_t hat : 4; + uint8_t reserved : 4; +#endif + #if JOYSTICK_BUTTON_COUNT > 0 uint8_t buttons[(JOYSTICK_BUTTON_COUNT - 1) / 8 + 1]; #endif |