aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum_keycodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r--quantum/quantum_keycodes.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 283b4a65c..2b309f4d5 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -81,9 +81,6 @@ enum quantum_keycodes {
81#endif 81#endif
82 QK_MOD_TAP = 0x6000, 82 QK_MOD_TAP = 0x6000,
83 QK_MOD_TAP_MAX = 0x7FFF, 83 QK_MOD_TAP_MAX = 0x7FFF,
84#if defined(UNICODEMAP_ENABLE) && defined(UNICODE_ENABLE)
85 #error "Cannot enable both UNICODEMAP && UNICODE"
86#endif
87#ifdef UNICODE_ENABLE 84#ifdef UNICODE_ENABLE
88 QK_UNICODE = 0x8000, 85 QK_UNICODE = 0x8000,
89 QK_UNICODE_MAX = 0xFFFF, 86 QK_UNICODE_MAX = 0xFFFF,
@@ -456,6 +453,15 @@ enum quantum_keycodes {
456 453
457 EEPROM_RESET, 454 EEPROM_RESET,
458 455
456 UNICODE_MODE_FORWARD,
457 UNICODE_MODE_REVERSE,
458
459 UNICODE_MODE_OSX,
460 UNICODE_MODE_LNX,
461 UNICODE_MODE_WIN,
462 UNICODE_MODE_BSD,
463 UNICODE_MODE_WINC,
464
459 // always leave at the end 465 // always leave at the end
460 SAFE_RANGE 466 SAFE_RANGE
461}; 467};
@@ -684,6 +690,15 @@ enum quantum_keycodes {
684 #define X(n) (QK_UNICODE_MAP | (n)) 690 #define X(n) (QK_UNICODE_MAP | (n))
685#endif 691#endif
686 692
693#define UC_MOD UNICODE_MODE_FORWARD
694#define UC_RMOD UNICODE_MODE_REVERSE
695
696#define UC_M_OS UNICODE_MODE_OSX
697#define UC_M_LN UNICODE_MODE_LNX
698#define UC_M_WI UNICODE_MODE_WIN
699#define UC_M_BS UNICODE_MODE_BSD
700#define UC_M_WC UNICODE_MODE_WINC
701
687#ifdef SWAP_HANDS_ENABLE 702#ifdef SWAP_HANDS_ENABLE
688 #define SH_T(kc) (QK_SWAP_HANDS | (kc)) 703 #define SH_T(kc) (QK_SWAP_HANDS | (kc))
689 #define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE) 704 #define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)