]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - matrix_skel.h
add error handling to ps2_mouse
[max/tmk_keyboard.git] / matrix_skel.h
index 0d483034db1ea239769cf4710d8a5d8f1041a8fa..59c4eca11aad6b56abf67d0bcdd92f90cadfd0ea 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef MATRIX_SKEL_H
-#define  MATRIX_SKEL_H 1
+#define MATRIX_SKEL_H 1
 
 #include <stdbool.h>
 
@@ -15,8 +15,12 @@ int  matrix_scan(void);
 bool matrix_is_modified(void);
 /* whether ghosting occur on matrix. */
 bool matrix_has_ghost(void);
+/* whether a swtich is on */
+bool matrix_is_on(int row, int col);
 /* matrix state on row */
 uint16_t matrix_get_row(int row);
+/* count keys pressed */
+int matrix_key_count(void);
 /* print matrix for debug */
 void matrix_print(void);