From 17046f281e9000a6b6ac5be49c8181f18992aea7 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 29 Jan 2017 08:23:12 +0100 Subject: [PATCH] Introduce two helper macros `TOGGLENUMLOCK` is the index of the macro, to be used in the `macroAction` function, and `Key_ToggleNumlock` is to be used in the keymap, instead of `M(0)`. This is considerably friendlier than before. Signed-off-by: Gergely Nagy --- src/Keyboardio-LEDEffect-Numlock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Keyboardio-LEDEffect-Numlock.h b/src/Keyboardio-LEDEffect-Numlock.h index b6af6d55..8a71f8fc 100644 --- a/src/Keyboardio-LEDEffect-Numlock.h +++ b/src/Keyboardio-LEDEffect-Numlock.h @@ -4,6 +4,9 @@ #include "Keyboardio-Macros.h" #include "LEDUtils.h" +#define TOGGLENUMLOCK 0 +#define Key_ToggleNumlock M(TOGGLENUMLOCK) + class NumLock_ : LEDMode { public: NumLock_ (void);