summaryrefslogtreecommitdiff
path: root/quantum/keymap_common.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-05-05 21:50:51 -0400
committerJack Humbert <jack.humb@gmail.com>2016-05-05 21:50:51 -0400
commit41b3e399b1d43db9574c6016951d92974b3d93e7 (patch)
treedf951653f16a38b0c847f0ba3750e74765e3aa54 /quantum/keymap_common.h
parent74e97eefd7ae76f9ddcb76890a30aa9038804cdb (diff)
adds keycode shortcuts for OSL and OSM
Diffstat (limited to 'quantum/keymap_common.h')
-rw-r--r--quantum/keymap_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h
index 0ede0296b9..ae10bc78d6 100644
--- a/quantum/keymap_common.h
+++ b/quantum/keymap_common.h
@@ -205,6 +205,12 @@ extern const uint16_t fn_actions[];
// Toggle to layer - 256 layer max
#define TG(layer) (layer | 0x5400)
+// One-shot layer - 256 layer max
+#define OSL(layer) (layer | 0x5500)
+
+// One-shot mod
+#define OSM(layer) (layer | 0x5600)
+
// M-od, T-ap - 256 keycode max
#define MT(mod, kc) (kc | 0x7000 | ((mod & 0xF) << 8))
#define CTL_T(kc) MT(0x1, kc)