diff options
Diffstat (limited to 'quantum/quantum_keycodes.h')
| -rw-r--r-- | quantum/quantum_keycodes.h | 21 | 
1 files changed, 18 insertions, 3 deletions
| diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 283b4a65ca..2b309f4d52 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -81,9 +81,6 @@ enum quantum_keycodes {  #endif      QK_MOD_TAP            = 0x6000,      QK_MOD_TAP_MAX        = 0x7FFF, -#if defined(UNICODEMAP_ENABLE) && defined(UNICODE_ENABLE) -    #error "Cannot enable both UNICODEMAP && UNICODE" -#endif  #ifdef UNICODE_ENABLE      QK_UNICODE            = 0x8000,      QK_UNICODE_MAX        = 0xFFFF, @@ -456,6 +453,15 @@ enum quantum_keycodes {      EEPROM_RESET, +    UNICODE_MODE_FORWARD, +    UNICODE_MODE_REVERSE, + +    UNICODE_MODE_OSX, +    UNICODE_MODE_LNX, +    UNICODE_MODE_WIN, +    UNICODE_MODE_BSD, +    UNICODE_MODE_WINC, +      // always leave at the end      SAFE_RANGE  }; @@ -684,6 +690,15 @@ enum quantum_keycodes {      #define X(n) (QK_UNICODE_MAP | (n))  #endif +#define UC_MOD  UNICODE_MODE_FORWARD +#define UC_RMOD UNICODE_MODE_REVERSE + +#define UC_M_OS UNICODE_MODE_OSX +#define UC_M_LN UNICODE_MODE_LNX +#define UC_M_WI UNICODE_MODE_WIN +#define UC_M_BS UNICODE_MODE_BSD +#define UC_M_WC UNICODE_MODE_WINC +  #ifdef SWAP_HANDS_ENABLE    #define SH_T(kc) (QK_SWAP_HANDS | (kc))    #define SH_TG    (QK_SWAP_HANDS | OP_SH_TOGGLE) | 
