diff options
author | Drashna Jaelre <drashna@live.com> | 2024-11-20 22:31:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 17:31:54 +1100 |
commit | 36b5559b997cedd14a352aa70891558936b8b3a3 (patch) | |
tree | bf4d30ba2d31b69d659c53a225e4a5b9a7299f7a /quantum/keyboard.c | |
parent | 39161b9ee793f4c62836b209ec877acda457b88d (diff) |
[Core] Add Layer Lock feature (#23430)
Co-authored-by: Daniel <1767914+iamdanielv@users.noreply.github.com>
Co-authored-by: Pascal Getreuer <getreuer@google.com>
Co-authored-by: Pascal Getreuer <50221757+getreuer@users.noreply.github.com>
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r-- | quantum/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c index df1dc1c3ee..8db81a4b39 100644 --- a/quantum/keyboard.c +++ b/quantum/keyboard.c @@ -140,6 +140,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifdef OS_DETECTION_ENABLE # include "os_detection.h" #endif +#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0 +# include "layer_lock.h" +#endif // LAYER_LOCK_ENABLE static uint32_t last_input_modification_time = 0; uint32_t last_input_activity_time(void) { @@ -655,6 +658,10 @@ void quantum_task(void) { #ifdef SECURE_ENABLE secure_task(); #endif + +#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0 + layer_lock_task(); +#endif } /** \brief Main task that is repeatedly called as fast as possible. */ |