diff options
author | Jack Humbert <[email protected]> | 2017-02-07 13:18:47 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2017-02-07 13:18:47 -0500 |
commit | 3c7fa0acc10305a573bc3bb29243a7a3d601579b (patch) | |
tree | 49aa463e861b30c3fa0bd454679e1aefebcb7c9c /quantum/quantum_keycodes.h | |
parent | 0c2b6951a6ad80649798c0eca36a9999ebae0b13 (diff) | |
parent | 77e54e34e129a03e58c128171a7188978ec908b4 (diff) | |
download | qmk_firmware-3c7fa0acc10305a573bc3bb29243a7a3d601579b.tar.gz qmk_firmware-3c7fa0acc10305a573bc3bb29243a7a3d601579b.zip |
Merge pull request #1046 from LukeSilva/master0.5.11
Add Tapping Macros to QMK
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index a786bd322f..8a78a58c9f 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -256,8 +256,10 @@ 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 #define LT(layer, kc) (kc | QK_LAYER_TAP | ((layer & 0xF) << 8)) |