From 8be09348a01df57222de49b937b5cf528f716724 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 23 Feb 2017 22:33:20 +0100 Subject: [PATCH] Instead of calling macroAction only on keydown, call it every time Call `macroAction` for all `keyState`s, not only when a key toggled on. This lets the macro itself decide when to act, and makes it possible to have macro effects on the other states. Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Macros.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Kaleidoscope-Macros.cpp b/src/Kaleidoscope-Macros.cpp index 26ed7871..d9a271b2 100644 --- a/src/Kaleidoscope-Macros.cpp +++ b/src/Kaleidoscope-Macros.cpp @@ -50,9 +50,6 @@ static Key handleMacroEvent(Key mappedKey, byte row, byte col, uint8_t keyState) if (mappedKey.flags != (SYNTHETIC | IS_MACRO)) return mappedKey; - if (!key_toggled_on(keyState)) - return Key_NoKey; - Macros_::row = row; Macros_::col = col; const macro_t *m = macroAction(mappedKey.keyCode, keyState);