From 6ec5f2cc50c87c4c2c621ea764ccb8fbc7d5418d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 14 Aug 2018 16:54:28 -0700 Subject: [PATCH] Rename an argument to be less confusing. ('flags' is often used to mean 'flags on a key definition', but this is really 'logical state of a virtual keyswitch') --- src/Kaleidoscope-Macros.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Kaleidoscope-Macros.cpp b/src/Kaleidoscope-Macros.cpp index b273bdea..acf64317 100644 --- a/src/Kaleidoscope-Macros.cpp +++ b/src/Kaleidoscope-Macros.cpp @@ -10,8 +10,9 @@ MacroKeyEvent Macros_::active_macros[]; byte Macros_::active_macro_count; byte Macros_::row, Macros_::col; -void playMacroKeyswitchEvent(Key key, uint8_t flags) { - handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, INJECTED | flags); +void playMacroKeyswitchEvent(Key key, uint8_t keyswitch_state) { + handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, keyswitch_state | INJECTED ); + kaleidoscope::hid::sendKeyboardReport(); kaleidoscope::hid::sendMouseReport(); }