diff options
Diffstat (limited to 'quantum/quantum_keycodes.h')
| -rw-r--r-- | quantum/quantum_keycodes.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index ab2e79026..63b626926 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
| @@ -41,16 +41,21 @@ 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, |
| 48 | #if defined(UNICODEMAP_ENABLE) && defined(UNICODE_ENABLE) | ||
| 49 | #error "Cannot enable both UNICODEMAP && UNICODE" | ||
| 50 | #endif | ||
| 50 | #ifdef UNICODE_ENABLE | 51 | #ifdef UNICODE_ENABLE |
| 51 | QK_UNICODE = 0x8000, | 52 | QK_UNICODE = 0x8000, |
| 52 | QK_UNICODE_MAX = 0xFFFF, | 53 | QK_UNICODE_MAX = 0xFFFF, |
| 53 | #endif | 54 | #endif |
| 55 | #ifdef UNICODEMAP_ENABLE | ||
| 56 | QK_UNICODE_MAP = 0x8000, | ||
| 57 | QK_UNICODE_MAP_MAX = 0x83FF, | ||
| 58 | #endif | ||
| 54 | 59 | ||
| 55 | // Loose keycodes - to be used directly | 60 | // Loose keycodes - to be used directly |
| 56 | 61 | ||
| @@ -86,6 +91,13 @@ enum quantum_keycodes { | |||
| 86 | AU_OFF, | 91 | AU_OFF, |
| 87 | AU_TOG, | 92 | AU_TOG, |
| 88 | 93 | ||
| 94 | #ifdef FAUXCLICKY_ENABLE | ||
| 95 | // Faux clicky | ||
| 96 | FC_ON, | ||
| 97 | FC_OFF, | ||
| 98 | FC_TOG, | ||
| 99 | #endif | ||
| 100 | |||
| 89 | // Music mode on/off/toggle | 101 | // Music mode on/off/toggle |
| 90 | MU_ON, | 102 | MU_ON, |
| 91 | MU_OFF, | 103 | MU_OFF, |
| @@ -297,6 +309,9 @@ enum quantum_keycodes { | |||
| 297 | // One-shot mod | 309 | // One-shot mod |
| 298 | #define OSM(mod) (mod | QK_ONE_SHOT_MOD) | 310 | #define OSM(mod) (mod | QK_ONE_SHOT_MOD) |
| 299 | 311 | ||
| 312 | // Layer tap-toggle | ||
| 313 | #define TT(layer) (layer | QK_LAYER_TAP_TOGGLE) | ||
| 314 | |||
| 300 | // M-od, T-ap - 256 keycode max | 315 | // M-od, T-ap - 256 keycode max |
| 301 | #define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8)) | 316 | #define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8)) |
| 302 | 317 | ||
