summaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.h
diff options
context:
space:
mode:
authorStephan Bösebeck <sb@caluga.de>2016-04-16 22:56:33 +0200
committerStephan Bösebeck <sb@caluga.de>2016-04-16 22:56:33 +0200
commit38a1d830faa138f6a7e094b3eda33dc528112ec7 (patch)
treeea7745744f1759741b09577f25faf616fb39dfa7 /quantum/keymap_common.h
parent990254edecab782d6f2e71ebfc0b0dda4dc0781e (diff)
parent5f648b6c4060d586c343ea05562c607e2630dfc4 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/keymap_common.h')
-rw-r--r--quantum/keymap_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h
index 4a877d2a70..7452a1ff3f 100644
--- a/quantum/keymap_common.h
+++ b/quantum/keymap_common.h
@@ -208,5 +208,9 @@ extern const uint16_t fn_actions[];
#define UNICODE(n) (n | 0x8000)
#define UC(n) UNICODE(n)
+// For tri-layer
+void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3);
+#define IS_LAYER_ON(layer) ((layer_state) & (1UL<<(layer)))
+#define IS_LAYER_OFF(layer) ((!layer_state) & (1UL<<(layer)))
#endif