aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/quantum_keycodes.h
diff options
context:
space:
mode:
authorGravatar Luke Silva <lukemasilva@gmail.com>2017-01-27 10:28:42 +1100
committerGravatar Luke Silva <lukemasilva@gmail.com>2017-01-27 10:28:42 +1100
commitcfc4149712217625fcb75e50348094fd9df432f5 (patch)
treed1041e50f5c4e5dc643f6fb867ce327486b94a7c /quantum/quantum_keycodes.h
parent87bc36253dd915c51571e1972b771f49db9673d3 (diff)
downloadqmk_firmware-cfc4149712217625fcb75e50348094fd9df432f5.tar.gz
Add ability to use tap macros without using functions
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r--quantum/quantum_keycodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 4853655f9..4566395fd 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -246,6 +246,7 @@ enum quantum_keycodes {
#define M(kc) (kc | QK_MACRO)
+#define MACROTAP(kc) (kc | QK_MACRO | FUNC_TAP<<8)
#define MACRODOWN(...) (record->event.pressed ? MACRO(__VA_ARGS__) : MACRO_NONE)
// L-ayer, T-ap - 256 keycode max, 16 layer max