diff options
author | Ryan <[email protected]> | 2024-11-10 09:10:10 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-09 14:10:10 -0800 |
commit | a3cfb1dab7679a774d8aa09f7b609f3302dad73d (patch) | |
tree | 315e8c7a35ae390b56f84def0d37b867bfa428c7 /tmk_core/protocol/host.c | |
parent | 69093f6de9b551bd84ff0a8eabcccca73026d55e (diff) | |
download | qmk_firmware-a3cfb1dab7679a774d8aa09f7b609f3302dad73d.tar.gz qmk_firmware-a3cfb1dab7679a774d8aa09f7b609f3302dad73d.zip |
Joystick: add support for 8-way hat switch (#24515)
Diffstat (limited to 'tmk_core/protocol/host.c')
-rw-r--r-- | tmk_core/protocol/host.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/protocol/host.c b/tmk_core/protocol/host.c index 732fbdc37d..df805c827c 100644 --- a/tmk_core/protocol/host.c +++ b/tmk_core/protocol/host.c @@ -193,6 +193,10 @@ void host_joystick_send(joystick_t *joystick) { }, # endif +# ifdef JOYSTICK_HAS_HAT + .hat = joystick->hat, +# endif + # if JOYSTICK_BUTTON_COUNT > 0 .buttons = { |