From 3ae87b155531b4529970c65c7a92a7399ab0233f Mon Sep 17 00:00:00 2001 From: dexter93 Date: Sun, 12 Feb 2023 18:38:36 +0200 Subject: core: allow locking the matrix state (#18852) Co-authored-by: Sergey Vlasov Co-authored-by: Stefan Kerkmann Co-authored-by: Nick Brassel --- quantum/matrix.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'quantum/matrix.h') diff --git a/quantum/matrix.h b/quantum/matrix.h index 760d21e0c1..a5b628fc59 100644 --- a/quantum/matrix.h +++ b/quantum/matrix.h @@ -51,6 +51,8 @@ void matrix_setup(void); void matrix_init(void); /* scan all key states on matrix */ uint8_t matrix_scan(void); +/* whether matrix scanning operations should be executed */ +bool matrix_can_read(void); /* whether a switch is on */ bool matrix_is_on(uint8_t row, uint8_t col); /* matrix state on row */ -- cgit v1.2.3