summaryrefslogtreecommitdiff
path: root/quantum/matrix_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/matrix_common.c')
-rw-r--r--quantum/matrix_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/matrix_common.c b/quantum/matrix_common.c
index de62b80705..e7d2dbb294 100644
--- a/quantum/matrix_common.c
+++ b/quantum/matrix_common.c
@@ -112,3 +112,8 @@ __attribute__((weak)) uint8_t matrix_scan(void) {
matrix_scan_quantum();
return changed;
}
+
+__attribute__((weak)) bool peek_matrix(uint8_t row_index, uint8_t col_index, bool raw) {
+ return 0 != ( (raw? raw_matrix[row_index]:matrix[row_index])
+ & (MATRIX_ROW_SHIFTER << col_index));
+}