diff options
Diffstat (limited to 'quantum/quantum_keycodes.h')
| -rw-r--r-- | quantum/quantum_keycodes.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index cc7a5013f..f36c8044e 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
| @@ -41,16 +41,18 @@ enum quantum_keycodes { | |||
| 41 | #endif | 41 | #endif |
| 42 | QK_TAP_DANCE = 0x5700, | 42 | QK_TAP_DANCE = 0x5700, |
| 43 | QK_TAP_DANCE_MAX = 0x57FF, | 43 | QK_TAP_DANCE_MAX = 0x57FF, |
| 44 | #ifdef UNICODEMAP_ENABLE | 44 | QK_LAYER_TAP_TOGGLE = 0x5800, |
| 45 | QK_UNICODE_MAP = 0x5800, | 45 | QK_LAYER_TAP_TOGGLE_MAX = 0x58FF, |
| 46 | QK_UNICODE_MAP_MAX = 0x5BFF, | ||
| 47 | #endif | ||
| 48 | QK_MOD_TAP = 0x6000, | 46 | QK_MOD_TAP = 0x6000, |
| 49 | QK_MOD_TAP_MAX = 0x7FFF, | 47 | QK_MOD_TAP_MAX = 0x7FFF, |
| 50 | #ifdef UNICODE_ENABLE | 48 | #ifdef UNICODE_ENABLE |
| 51 | QK_UNICODE = 0x8000, | 49 | QK_UNICODE = 0x8000, |
| 52 | QK_UNICODE_MAX = 0xFFFF, | 50 | QK_UNICODE_MAX = 0xFFFF, |
| 53 | #endif | 51 | #endif |
| 52 | #ifdef UNICODEMAP_ENABLE | ||
| 53 | QK_UNICODE_MAP = 0x8000, | ||
| 54 | QK_UNICODE_MAP_MAX = 0x83FF, | ||
| 55 | #endif | ||
| 54 | 56 | ||
| 55 | // Loose keycodes - to be used directly | 57 | // Loose keycodes - to be used directly |
| 56 | 58 | ||
| @@ -304,6 +306,9 @@ enum quantum_keycodes { | |||
| 304 | // One-shot mod | 306 | // One-shot mod |
| 305 | #define OSM(mod) (mod | QK_ONE_SHOT_MOD) | 307 | #define OSM(mod) (mod | QK_ONE_SHOT_MOD) |
| 306 | 308 | ||
| 309 | // Layer tap-toggle | ||
| 310 | #define TT(layer) (layer | QK_LAYER_TAP_TOGGLE) | ||
| 311 | |||
| 307 | // M-od, T-ap - 256 keycode max | 312 | // M-od, T-ap - 256 keycode max |
| 308 | #define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8)) | 313 | #define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8)) |
| 309 | 314 | ||
