diff options
Diffstat (limited to 'quantum/keymap.h')
-rw-r--r-- | quantum/keymap.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/quantum/keymap.h b/quantum/keymap.h index 98ddfd0c5..a01bbfbd1 100644 --- a/quantum/keymap.h +++ b/quantum/keymap.h | |||
@@ -84,6 +84,10 @@ enum quantum_keycodes { | |||
84 | QK_MOD_TAP_MAX = 0x6FFF, | 84 | QK_MOD_TAP_MAX = 0x6FFF, |
85 | QK_TAP_DANCE = 0x7100, | 85 | QK_TAP_DANCE = 0x7100, |
86 | QK_TAP_DANCE_MAX = 0x71FF, | 86 | QK_TAP_DANCE_MAX = 0x71FF, |
87 | #ifdef UNICODEMAP_ENABLE | ||
88 | QK_UNICODE_MAP = 0x7800, | ||
89 | QK_UNICODE_MAP_MAX = 0x7FFF, | ||
90 | #endif | ||
87 | #ifdef UNICODE_ENABLE | 91 | #ifdef UNICODE_ENABLE |
88 | QK_UNICODE = 0x8000, | 92 | QK_UNICODE = 0x8000, |
89 | QK_UNICODE_MAX = 0xFFFF, | 93 | QK_UNICODE_MAX = 0xFFFF, |
@@ -191,6 +195,7 @@ enum quantum_keycodes { | |||
191 | #define HYPR(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI) | 195 | #define HYPR(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI) |
192 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) | 196 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) |
193 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) | 197 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) |
198 | #define ALTG(kc) (kc | QK_RCTL | QK_RALT) | ||
194 | 199 | ||
195 | #define MOD_HYPR 0xf | 200 | #define MOD_HYPR 0xf |
196 | #define MOD_MEH 0x7 | 201 | #define MOD_MEH 0x7 |
@@ -295,7 +300,10 @@ enum quantum_keycodes { | |||
295 | // ON_PRESS = 1 | 300 | // ON_PRESS = 1 |
296 | // ON_RELEASE = 2 | 301 | // ON_RELEASE = 2 |
297 | // Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default. | 302 | // Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default. |
298 | #define TO(layer, when) (layer | QK_TO | (when << 0x4)) | 303 | // In fact, we changed it to assume ON_PRESS for sanity/simplicity. If needed, you can add your own |
304 | // keycode modeled after the old version, kept below for this. | ||
305 | /* #define TO(layer, when) (layer | QK_TO | (when << 0x4)) */ | ||
306 | #define TO(layer) (layer | QK_TO | (ON_PRESS << 0x4)) | ||
299 | 307 | ||
300 | // Momentary switch layer - 256 layer max | 308 | // Momentary switch layer - 256 layer max |
301 | #define MO(layer) (layer | QK_MOMENTARY) | 309 | #define MO(layer) (layer | QK_MOMENTARY) |
@@ -335,5 +343,8 @@ enum quantum_keycodes { | |||
335 | #define UC(n) UNICODE(n) | 343 | #define UC(n) UNICODE(n) |
336 | #endif | 344 | #endif |
337 | 345 | ||
346 | #ifdef UNICODEMAP_ENABLE | ||
347 | #define X(n) (n | QK_UNICODE_MAP) | ||
348 | #endif | ||
338 | 349 | ||
339 | #endif | 350 | #endif |