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

View File

@@ -44,6 +44,9 @@ key_matrix_t KeyMatrix = {
#endif
};
uint8_t PreviousKeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
uint8_t CurrentKeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
void main() {
InitPeripherials();
InitClock();