diff options
author | Nick Brassel <nick@tzarc.org> | 2021-01-18 05:01:38 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 05:01:38 +1100 |
commit | e702c7f1b4cfa8fe1579498ef2877994baa64056 (patch) | |
tree | 6fcb6c74a1e69f7f981303659cae857f50d0a208 /tmk_core/common/keyboard.h | |
parent | d6d15b91f3a43b74f177fea9fd2f632eaf303696 (diff) | |
download | qmk_firmware-e702c7f1b4cfa8fe1579498ef2877994baa64056.tar.gz qmk_firmware-e702c7f1b4cfa8fe1579498ef2877994baa64056.zip |
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.h | 3 |
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 |