Skip to content

Commit

Permalink
Remove ifdefs for UC and X/XP too (qmk#12131)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Mar 6, 2021
1 parent 23d6ca9 commit 9c94de0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions quantum/quantum_keycodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,11 @@ enum quantum_keycodes {
#define KC_HYPR HYPR(KC_NO)
#define KC_MEH MEH(KC_NO)

#ifdef UNICODE_ENABLE
// Allows Unicode input up to 0x7FFF
# define UC(c) (QK_UNICODE | (c))
#endif
#ifdef UNICODEMAP_ENABLE
// Allows Unicode input up to 0x10FFFF, requires unicode_map
# define X(i) (QK_UNICODEMAP | (i))
# define XP(i, j) (QK_UNICODEMAP_PAIR | ((i)&0x7F) | (((j)&0x7F) << 7)) // 127 max i and j
#endif
// UNICODE_ENABLE - Allows Unicode input up to 0x7FFF
#define UC(c) (QK_UNICODE | (c))
// UNICODEMAP_ENABLE - Allows Unicode input up to 0x10FFFF, requires unicode_map
#define X(i) (QK_UNICODEMAP | (i))
#define XP(i, j) (QK_UNICODEMAP_PAIR | ((i)&0x7F) | (((j)&0x7F) << 7)) // 127 max i and j

#define UC_MOD UNICODE_MODE_FORWARD
#define UC_RMOD UNICODE_MODE_REVERSE
Expand Down

0 comments on commit 9c94de0

Please sign in to comment.