diff options
| author | Ryan <fauxpark@gmail.com> | 2022-10-23 07:45:20 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-22 21:45:20 +0100 |
| commit | 74484e21afc819b8e20f408aebc5c4e6cfdcc991 (patch) | |
| tree | 0549490929ac1b13d035e1ea3b13b32debc26dc1 /quantum | |
| parent | 2e2e7511fdcafd42659d77eeeff4da88301f73ee (diff) | |
Deprecate `VLK_TOG` for `VK_TOGG` (#18807)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/quantum.c | 2 | ||||
| -rw-r--r-- | quantum/quantum_keycodes.h | 5 | ||||
| -rw-r--r-- | quantum/quantum_keycodes_legacy.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index add7402550..2c55f45e3b 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -379,7 +379,7 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 379 | #endif | 379 | #endif |
| 380 | return false; | 380 | return false; |
| 381 | #ifdef VELOCIKEY_ENABLE | 381 | #ifdef VELOCIKEY_ENABLE |
| 382 | case VLK_TOG: | 382 | case QK_VELOCIKEY_TOGGLE: |
| 383 | velocikey_toggle(); | 383 | velocikey_toggle(); |
| 384 | return false; | 384 | return false; |
| 385 | #endif | 385 | #endif |
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index caf4d2b395..44702a362d 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
| @@ -359,7 +359,7 @@ enum quantum_keycodes { | |||
| 359 | RGB_MODE_RGBTEST, // 5CD6 | 359 | RGB_MODE_RGBTEST, // 5CD6 |
| 360 | 360 | ||
| 361 | // Velocikey | 361 | // Velocikey |
| 362 | VLK_TOG, // 5CD7 | 362 | QK_VELOCIKEY_TOGGLE, // 5CD7 |
| 363 | 363 | ||
| 364 | // Space Cadet | 364 | // Space Cadet |
| 365 | KC_LSPO, // 5CD8 | 365 | KC_LSPO, // 5CD8 |
| @@ -743,6 +743,9 @@ enum quantum_keycodes { | |||
| 743 | #define CRT_OFF AUTOCORRECT_OFF | 743 | #define CRT_OFF AUTOCORRECT_OFF |
| 744 | #define CRT_TOG AUTOCORRECT_TOGGLE | 744 | #define CRT_TOG AUTOCORRECT_TOGGLE |
| 745 | 745 | ||
| 746 | // Velocikey | ||
| 747 | #define VK_TOGG QK_VELOCIKEY_TOGGLE | ||
| 748 | |||
| 746 | // GOTO layer - 256 layer max | 749 | // GOTO layer - 256 layer max |
| 747 | #define TO(layer) (QK_TO | ((layer)&0xFF)) | 750 | #define TO(layer) (QK_TO | ((layer)&0xFF)) |
| 748 | 751 | ||
diff --git a/quantum/quantum_keycodes_legacy.h b/quantum/quantum_keycodes_legacy.h index 6a847f71a6..db13d5973d 100644 --- a/quantum/quantum_keycodes_legacy.h +++ b/quantum/quantum_keycodes_legacy.h | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | #define KC_LEAD QK_LEADER | 6 | #define KC_LEAD QK_LEADER |
| 7 | #define KC_LOCK QK_LOCK | 7 | #define KC_LOCK QK_LOCK |
| 8 | 8 | ||
| 9 | #define VLK_TOG QK_VELOCIKEY_TOGGLE | ||
| 10 | |||
| 9 | #define TERM_ON _Static_assert(false, "The Terminal feature has been removed from QMK. Please remove use of TERM_ON/TERM_OFF from your keymap.") | 11 | #define TERM_ON _Static_assert(false, "The Terminal feature has been removed from QMK. Please remove use of TERM_ON/TERM_OFF from your keymap.") |
| 10 | #define TERM_OFF _Static_assert(false, "The Terminal feature has been removed from QMK.. Please remove use of TERM_ON/TERM_OFF from your keymap.") | 12 | #define TERM_OFF _Static_assert(false, "The Terminal feature has been removed from QMK.. Please remove use of TERM_ON/TERM_OFF from your keymap.") |
| 11 | // #define RESET _Static_assert(false, "The RESET keycode has been removed from QMK.. Please remove use from your keymap.") | 13 | // #define RESET _Static_assert(false, "The RESET keycode has been removed from QMK.. Please remove use from your keymap.") |
