diff options
author | Ryan <[email protected]> | 2023-10-23 14:43:46 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-23 15:43:46 +1100 |
commit | 0c160e1fbafbf477c74e64fd8ab9a9121eb0f42a (patch) | |
tree | 7a6e361a5fe396b72029ab03d7e00abe1f19a105 /quantum/action_util.h | |
parent | bf6f13a2b0a185e935b8554e41317ab471a4c0ec (diff) | |
download | qmk_firmware-0c160e1fbafbf477c74e64fd8ab9a9121eb0f42a.tar.gz qmk_firmware-0c160e1fbafbf477c74e64fd8ab9a9121eb0f42a.zip |
Separate 6KRO and NKRO report structs (#22267)
Diffstat (limited to 'quantum/action_util.h')
-rw-r--r-- | quantum/action_util.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/action_util.h b/quantum/action_util.h index 831caf3c0a..d2ecb145be 100644 --- a/quantum/action_util.h +++ b/quantum/action_util.h @@ -26,20 +26,23 @@ extern "C" { #endif extern report_keyboard_t *keyboard_report; +#ifdef NKRO_ENABLE +extern report_nkro_t *nkro_report; +#endif void send_keyboard_report(void); /* key */ inline void add_key(uint8_t key) { - add_key_to_report(keyboard_report, key); + add_key_to_report(key); } inline void del_key(uint8_t key) { - del_key_from_report(keyboard_report, key); + del_key_from_report(key); } inline void clear_keys(void) { - clear_keys_from_report(keyboard_report); + clear_keys_from_report(); } /* modifier */ |