summary refs log tree commit diff
path: root/quantum
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-11-05 16:58:30 +0000
committerGitHub <noreply@github.com>2022-11-05 16:58:30 +0000
commitfd4c3f46fb31c6b095607706808a58ba068536bf (patch)
tree3394024bc8aea90bb22425592a98441e26c17a99 /quantum
parent5233c69bc60aa612709e5d74a005431594612b6e (diff)
Align dynamic tapping term keycode names (#18963)
* Align dynamic tapping term keycode names

* regen header
Diffstat (limited to 'quantum')
-rw-r--r--quantum/keycodes.h10
-rw-r--r--quantum/process_keycode/process_dynamic_tapping_term.c6
2 files changed, 10 insertions, 6 deletions
diff --git a/quantum/keycodes.h b/quantum/keycodes.h
index c27a5a732c..2ef94f5d3e 100644
--- a/quantum/keycodes.h
+++ b/quantum/keycodes.h
@@ -706,9 +706,9 @@ enum qk_keycode_defines {
     QK_SECURE_UNLOCK = 0x7C61,
     QK_SECURE_TOGGLE = 0x7C62,
     QK_SECURE_REQUEST = 0x7C63,
-    DT_PRNT = 0x7C70,
-    DT_UP = 0x7C71,
-    DT_DOWN = 0x7C72,
+    QK_DYNAMIC_TAPPING_TERM_PRINT = 0x7C70,
+    QK_DYNAMIC_TAPPING_TERM_UP = 0x7C71,
+    QK_DYNAMIC_TAPPING_TERM_DOWN = 0x7C72,
     QK_CAPS_WORD_TOGGLE = 0x7C73,
     QK_AUTOCORRECT_ON = 0x7C74,
     QK_AUTOCORRECT_OFF = 0x7C75,
@@ -1088,6 +1088,9 @@ enum qk_keycode_defines {
     SE_UNLK    = QK_SECURE_UNLOCK,
     SE_TOGG    = QK_SECURE_TOGGLE,
     SE_REQ     = QK_SECURE_REQUEST,
+    DT_PRNT    = QK_DYNAMIC_TAPPING_TERM_PRINT,
+    DT_UP      = QK_DYNAMIC_TAPPING_TERM_UP,
+    DT_DOWN    = QK_DYNAMIC_TAPPING_TERM_DOWN,
     CW_TOGG    = QK_CAPS_WORD_TOGGLE,
     AC_ON      = QK_AUTOCORRECT_ON,
     AC_OFF     = QK_AUTOCORRECT_OFF,
@@ -1142,3 +1145,4 @@ enum qk_keycode_defines {
 #define IS_BACKLIGHT_KEYCODE(code) ((code) >= BL_ON && (code) <= BL_BRTG)
 #define IS_RGB_KEYCODE(code) ((code) >= RGB_TOG && (code) <= RGB_MODE_TWINKLE)
 #define IS_QUANTUM_KEYCODE(code) ((code) >= QK_BOOTLOADER && (code) <= QK_AUTOCORRECT_TOGGLE)
+
diff --git a/quantum/process_keycode/process_dynamic_tapping_term.c b/quantum/process_keycode/process_dynamic_tapping_term.c
index b682f34da6..146b9fccd7 100644
--- a/quantum/process_keycode/process_dynamic_tapping_term.c
+++ b/quantum/process_keycode/process_dynamic_tapping_term.c
@@ -35,15 +35,15 @@ static void tapping_term_report(void) {
 bool process_dynamic_tapping_term(uint16_t keycode, keyrecord_t *record) {
     if (record->event.pressed) {
         switch (keycode) {
-            case DT_PRNT:
+            case QK_DYNAMIC_TAPPING_TERM_PRINT:
                 tapping_term_report();
                 return false;
 
-            case DT_UP:
+            case QK_DYNAMIC_TAPPING_TERM_UP:
                 g_tapping_term += DYNAMIC_TAPPING_TERM_INCREMENT;
                 return false;
 
-            case DT_DOWN:
+            case QK_DYNAMIC_TAPPING_TERM_DOWN:
                 g_tapping_term -= DYNAMIC_TAPPING_TERM_INCREMENT;
                 return false;
         }