summaryrefslogtreecommitdiff
path: root/quantum/keyboard.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-13 03:19:02 +1100
committerGitHub <noreply@github.com>2023-02-13 03:19:02 +1100
commitbbf7a20b33de2d203518687cb5cd1aa85005ea27 (patch)
treeee1a5c412a02021d085c81a26321c3424eca7022 /quantum/keyboard.c
parentd10350cd2ceb2b9d80522cdec3ea908118f7fd35 (diff)
Refactor Leader key feature (#19632)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r--quantum/keyboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index 1de5f1cd0c..e8e3292dbc 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -105,6 +105,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
105#ifdef CAPS_WORD_ENABLE 105#ifdef CAPS_WORD_ENABLE
106# include "caps_word.h" 106# include "caps_word.h"
107#endif 107#endif
108#ifdef LEADER_ENABLE
109# include "leader.h"
110#endif
108 111
109static uint32_t last_input_modification_time = 0; 112static uint32_t last_input_modification_time = 0;
110uint32_t last_input_activity_time(void) { 113uint32_t last_input_activity_time(void) {
@@ -546,6 +549,10 @@ void quantum_task(void) {
546 combo_task(); 549 combo_task();
547#endif 550#endif
548 551
552#ifdef LEADER_ENABLE
553 leader_task();
554#endif
555
549#ifdef WPM_ENABLE 556#ifdef WPM_ENABLE
550 decay_wpm(); 557 decay_wpm();
551#endif 558#endif