From 74484e21afc819b8e20f408aebc5c4e6cfdcc991 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 23 Oct 2022 07:45:20 +1100 Subject: Deprecate `VLK_TOG` for `VK_TOGG` (#18807) --- quantum/quantum.c | 2 +- quantum/quantum_keycodes.h | 5 ++++- quantum/quantum_keycodes_legacy.h | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'quantum') 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.") -- cgit v1.2.3