Add CurrentKeyStates and PreviousKeyStates globals and use them across the whole codebase.

This commit is contained in:
László Monda
2017-01-03 01:09:00 +01:00
parent 3942d089de
commit 2457f3b0e0
6 changed files with 28 additions and 20 deletions
+6
View File
@@ -4,14 +4,20 @@
// Includes:
#include "key_matrix.h"
#include "slot.h"
#include "module.h"
// Macros:
#define KEYBOARD_MATRIX_COLS_NUM 7
#define KEYBOARD_MATRIX_ROWS_NUM 5
#define LEFT_KEYBOARD_HALF_KEY_COUNT (5*7)
// Variables:
extern key_matrix_t KeyMatrix;
extern uint8_t PreviousKeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
extern uint8_t CurrentKeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
#endif