summaryrefslogtreecommitdiff
path: root/quantum/matrix.h
diff options
context:
space:
mode:
authordexter93 <d3xter93@gmail.com>2023-02-12 18:38:36 +0200
committerGitHub <noreply@github.com>2023-02-13 03:38:36 +1100
commit3ae87b155531b4529970c65c7a92a7399ab0233f (patch)
tree965b795d54fcd7859e133e9a098b6d34a109443c /quantum/matrix.h
parentdb1eeea4788de062eccf327da5844fc3f46844f9 (diff)
core: allow locking the matrix state (#18852)
Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Stefan Kerkmann <karlk90@pm.me> Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/matrix.h')
-rw-r--r--quantum/matrix.h2
1 files changed, 2 insertions, 0 deletions
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 */