Add CurrentKeyStates and PreviousKeyStates globals and use them across the whole codebase.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user