summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/keyboard.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-12 19:48:24 +1100
committerGitHub <noreply@github.com>2021-01-12 19:48:24 +1100
commit79d1db332477963555416d9fff82ecac4399bd52 (patch)
tree1d5465b40e857c60e13a855d4667923d6eee0521 /tmk_core/common/keyboard.h
parenta2aed8ebd7f7501cc33af4cae26608447209a65b (diff)
Keep track of last matrix activity (#10730)
* Allow recording of the last matrix activity time, to simplify implementation of display timeouts and the like. * Add requested changes from code review. * Simplify split matrix last changed.
Diffstat (limited to 'tmk_core/common/keyboard.h')
-rw-r--r--tmk_core/common/keyboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common/keyboard.h b/tmk_core/common/keyboard.h
index d04e685cdb..cc5b2e5e42 100644
--- a/tmk_core/common/keyboard.h
+++ b/tmk_core/common/keyboard.h
@@ -73,6 +73,9 @@ void keyboard_post_init_user(void);
void housekeeping_task_kb(void);
void housekeeping_task_user(void);
+uint32_t last_matrix_activity_time(void); // Timestamp of the last matrix activity
+uint32_t last_matrix_activity_elapsed(void); // Number of milliseconds since the last matrix activity
+
#ifdef __cplusplus
}
#endif