aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2015-10-27 23:06:18 -0400
committerJack Humbert <jack.humb@gmail.com>2015-10-27 23:06:18 -0400
commit18da1e6801335b0d9515ab72e9236a01d629915f (patch)
treeb742da9b8d7f766a6e63957dd0b201007ffeb0fe /quantum/keymap_common.h
parentd9f08e6177271594fa573993d9f4dbc2d98c7416 (diff)
downloadfirmware-18da1e6801335b0d9515ab72e9236a01d629915f.tar.gz
firmware-18da1e6801335b0d9515ab72e9236a01d629915f.tar.bz2
firmware-18da1e6801335b0d9515ab72e9236a01d629915f.zip
layer tap, mod tap
Diffstat (limited to 'quantum/keymap_common.h')
-rw-r--r--quantum/keymap_common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h
index 100300e81..e93e86483 100644
--- a/quantum/keymap_common.h
+++ b/quantum/keymap_common.h
@@ -177,13 +177,16 @@ extern const uint16_t fn_actions[];
#define MIDI(n) (n | 0x6000)
-// H-old, T-ap - 256 keycode max
-#define HT(mod, kc) (kc | 0x7000 | ((mod & 0xF) << 8))
+// M-od, T-ap - 256 keycode max
+#define MT(mod, kc) (kc | 0x7000 | ((mod & 0xF) << 8))
#define CTL_T(kc) HT(0x1, kc)
#define SFT_T(kc) HT(0x2, kc)
#define ALT_T(kc) HT(0x4, kc)
#define GUI_T(kc) HT(0x8, kc)
+// L-ayer, T-ap - 256 keycode max, 16 layer max
+#define LT(layer, kc) (kc | 0x7000 | ((layer & 0xF) << 8))
+
// For sending unicode codes.
// You may not send codes over 1FFF -- this supports most of UTF8.
// To have a key that sends out Œ, go UC(0x0152)