diff options
author | Joe Wasson <jwasson+github@gmail.com> | 2018-03-11 16:53:35 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-16 16:33:43 -0400 |
commit | 23ac2a02ef870dce91318a4d98e3c8ec5749bced (patch) | |
tree | 302f61696ce319d635c17e919ec6d8acf264d2ab /quantum/quantum_keycodes.h | |
parent | 7230923b051bdb32bea19c3d732fa1fbc4883a68 (diff) | |
download | qmk_firmware-23ac2a02ef870dce91318a4d98e3c8ec5749bced.tar.gz qmk_firmware-23ac2a02ef870dce91318a4d98e3c8ec5749bced.zip |
Add keycodes for swap-hands feature.
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index a4ee4d6bb..9040299a7 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -77,6 +77,10 @@ enum quantum_keycodes { | |||
77 | QK_STENO_GEMINI = 0x5A31, | 77 | QK_STENO_GEMINI = 0x5A31, |
78 | QK_STENO_MAX = 0x5A3F, | 78 | QK_STENO_MAX = 0x5A3F, |
79 | #endif | 79 | #endif |
80 | #ifdef SWAP_HANDS_ENABLE | ||
81 | QK_SWAP_HANDS = 0x5B00, | ||
82 | QK_SWAP_HANDS_MAX = 0x5BFF, | ||
83 | #endif | ||
80 | QK_MOD_TAP = 0x6000, | 84 | QK_MOD_TAP = 0x6000, |
81 | QK_MOD_TAP_MAX = 0x7FFF, | 85 | QK_MOD_TAP_MAX = 0x7FFF, |
82 | #if defined(UNICODEMAP_ENABLE) && defined(UNICODE_ENABLE) | 86 | #if defined(UNICODEMAP_ENABLE) && defined(UNICODE_ENABLE) |
@@ -641,4 +645,14 @@ enum quantum_keycodes { | |||
641 | #define X(n) (n | QK_UNICODE_MAP) | 645 | #define X(n) (n | QK_UNICODE_MAP) |
642 | #endif | 646 | #endif |
643 | 647 | ||
648 | #ifdef SWAP_HANDS_ENABLE | ||
649 | #define SH_T(key) (QK_SWAP_HANDS | key) | ||
650 | #define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE) | ||
651 | #define SH_TT (QK_SWAP_HANDS | OP_SH_TAP_TOGGLE) | ||
652 | #define SH_MON (QK_SWAP_HANDS | OP_SH_ON_OFF) | ||
653 | #define SH_MOFF (QK_SWAP_HANDS | OP_SH_OFF_ON) | ||
654 | #define SH_ON (QK_SWAP_HANDS | OP_SH_ON) | ||
655 | #define SH_OFF (QK_SWAP_HANDS | OP_SH_OFF) | ||
656 | #endif | ||
657 | |||
644 | #endif // QUANTUM_KEYCODES_H | 658 | #endif // QUANTUM_KEYCODES_H |