aboutsummaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2021-02-28 12:16:04 +0000
committerdakkar <dakkar@thenautilus.net>2021-02-28 12:23:12 +0000
commita67551b502006af7e18a37067332f9192a2c8f25 (patch)
tree4f6cc32ca01b36e71c1b1677ff99c6f954a3fcfa /macros.h
parentuse alt+f10 to bring up the mixer (diff)
downloadkeyboardio-model01-a67551b502006af7e18a37067332f9192a2c8f25.tar.gz
keyboardio-model01-a67551b502006af7e18a37067332f9192a2c8f25.tar.bz2
keyboardio-model01-a67551b502006af7e18a37067332f9192a2c8f25.zip
kill numpad
I only ever hit it by accident
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/macros.h b/macros.h
index ce5ec13..9a06eab 100644
--- a/macros.h
+++ b/macros.h
@@ -6,7 +6,6 @@
enum { MACRO_VERSION_INFO,
MACRO_ANY,
- MACRO_NUMLOCK,
MACRO_FVWM,
};
@@ -33,18 +32,6 @@ static void anyKeyMacro(uint8_t keyState) {
kaleidoscope::hid::pressKey(lastKey, toggledOn);
}
-static void numLockMacro(uint8_t keyState) {
- if (keyToggledOn(keyState)) {
- kaleidoscope::hid::pressKey(Key_KeypadNumLock);
- if (Layer.isActive(NUMPAD)) {
- Layer.deactivate(NUMPAD);
- }
- else {
- Layer.activate(NUMPAD);
- }
- }
-}
-
static const macro_t *fvwmMacro(uint8_t keyState) {
if (keyIsPressed(keyState)) {
return MACRO(D(LeftAlt),Dr(ShiftToLayer(FVWM)));
@@ -66,10 +53,6 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
anyKeyMacro(keyState);
break;
- case MACRO_NUMLOCK:
- numLockMacro(keyState);
- break;
-
case MACRO_FVWM:
return fvwmMacro(keyState);
break;