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) { #endif return false; #ifdef VELOCIKEY_ENABLE - case VLK_TOG: + case QK_VELOCIKEY_TOGGLE: velocikey_toggle(); return false; #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 { RGB_MODE_RGBTEST, // 5CD6 // Velocikey - VLK_TOG, // 5CD7 + QK_VELOCIKEY_TOGGLE, // 5CD7 // Space Cadet KC_LSPO, // 5CD8 @@ -743,6 +743,9 @@ enum quantum_keycodes { #define CRT_OFF AUTOCORRECT_OFF #define CRT_TOG AUTOCORRECT_TOGGLE +// Velocikey +#define VK_TOGG QK_VELOCIKEY_TOGGLE + // GOTO layer - 256 layer max #define TO(layer) (QK_TO | ((layer)&0xFF)) 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 @@ #define KC_LEAD QK_LEADER #define KC_LOCK QK_LOCK +#define VLK_TOG QK_VELOCIKEY_TOGGLE + #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.") #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.") // #define RESET _Static_assert(false, "The RESET keycode has been removed from QMK.. Please remove use from your keymap.") |