summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/keyboard.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-18 05:01:38 +1100
committerGitHub <noreply@github.com>2021-01-18 05:01:38 +1100
commite702c7f1b4cfa8fe1579498ef2877994baa64056 (patch)
tree6fcb6c74a1e69f7f981303659cae857f50d0a208 /tmk_core/common/keyboard.h
parentd6d15b91f3a43b74f177fea9fd2f632eaf303696 (diff)
Keep track of last matrix activity. (#11552)
Co-authored-by: Dasky <daskygit@users.noreply.github.com> Co-authored-by: Dasky <daskygit@users.noreply.github.com>
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