diff options
author | Nick Brassel <[email protected]> | 2023-05-15 22:27:37 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-15 22:27:37 +1000 |
commit | 5faa23d54ca1e3ab83097f2a07922f48800616e6 (patch) | |
tree | 6ed05e5492f3fc8dda210a75b897dd9d4ed8df38 /users/yet-another-developer | |
parent | 433dc6068603e61d466e755aedcea0be96664f95 (diff) | |
download | qmk_firmware-5faa23d54ca1e3ab83097f2a07922f48800616e6.tar.gz qmk_firmware-5faa23d54ca1e3ab83097f2a07922f48800616e6.zip |
Keymap introspection for combos. (#19670)
Diffstat (limited to 'users/yet-another-developer')
-rw-r--r-- | users/yet-another-developer/combo.h | 5 | ||||
-rw-r--r-- | users/yet-another-developer/config.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/users/yet-another-developer/combo.h b/users/yet-another-developer/combo.h index e2ff09ab5a..6fb3eaf58c 100644 --- a/users/yet-another-developer/combo.h +++ b/users/yet-another-developer/combo.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "quantum.h" enum combo_events { ZV_COPY, @@ -12,10 +12,9 @@ const uint16_t PROGMEM cut_combo[] = {KC_X, KC_V, COMBO_END}; const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END}; const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END}; -combo_t key_combos[COMBO_COUNT] = { +combo_t key_combos[] = { [ZV_COPY] = COMBO_ACTION(copy_combo), [XV_CUT] = COMBO_ACTION(cut_combo), [CV_PASTE] = COMBO_ACTION(paste_combo), [QP_SLEEP] = COMBO_ACTION(sleep_combo), }; - diff --git a/users/yet-another-developer/config.h b/users/yet-another-developer/config.h index e783d08dc5..4836822eb4 100644 --- a/users/yet-another-developer/config.h +++ b/users/yet-another-developer/config.h @@ -17,7 +17,6 @@ #endif // !LEADER_ENABLE #if defined(COMBO_ENABLE) - #define COMBO_COUNT 4 #define COMBO_TERM 150 #endif // !COMBO_ENABLE |