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 41aa11622..ae56d16c7 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, |
@@ -195,6 +199,7 @@ enum quantum_keycodes { | |||
195 | #define HYPR(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI) | 199 | #define HYPR(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI) |
196 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) | 200 | #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) |
197 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) | 201 | #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) |
202 | #define ALTG(kc) (kc | QK_RCTL | QK_RALT) | ||
198 | 203 | ||
199 | #define MOD_HYPR 0xf | 204 | #define MOD_HYPR 0xf |
200 | #define MOD_MEH 0x7 | 205 | #define MOD_MEH 0x7 |
@@ -299,7 +304,10 @@ enum quantum_keycodes { | |||
299 | // ON_PRESS = 1 | 304 | // ON_PRESS = 1 |
300 | // ON_RELEASE = 2 | 305 | // ON_RELEASE = 2 |
301 | // Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default. | 306 | // Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default. |
302 | #define TO(layer, when) (layer | QK_TO | (when << 0x4)) | 307 | // In fact, we changed it to assume ON_PRESS for sanity/simplicity. If needed, you can add your own |
308 | // keycode modeled after the old version, kept below for this. | ||
309 | /* #define TO(layer, when) (layer | QK_TO | (when << 0x4)) */ | ||
310 | #define TO(layer) (layer | QK_TO | (ON_PRESS << 0x4)) | ||
303 | 311 | ||
304 | // Momentary switch layer - 256 layer max | 312 | // Momentary switch layer - 256 layer max |
305 | #define MO(layer) (layer | QK_MOMENTARY) | 313 | #define MO(layer) (layer | QK_MOMENTARY) |
@@ -339,5 +347,8 @@ enum quantum_keycodes { | |||
339 | #define UC(n) UNICODE(n) | 347 | #define UC(n) UNICODE(n) |
340 | #endif | 348 | #endif |
341 | 349 | ||
350 | #ifdef UNICODEMAP_ENABLE | ||
351 | #define X(n) (n | QK_UNICODE_MAP) | ||
352 | #endif | ||
342 | 353 | ||
343 | #endif | 354 | #endif |