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 <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 051778048d
commit 17046f281e

@ -4,6 +4,9 @@
#include "Keyboardio-Macros.h" #include "Keyboardio-Macros.h"
#include "LEDUtils.h" #include "LEDUtils.h"
#define TOGGLENUMLOCK 0
#define Key_ToggleNumlock M(TOGGLENUMLOCK)
class NumLock_ : LEDMode { class NumLock_ : LEDMode {
public: public:
NumLock_ (void); NumLock_ (void);

Loading…
Cancel
Save