Rename CurrentKeyStates to KeyStates and move it to the newly created key_states.[ch]

This commit is contained in:
László Monda
2017-11-03 02:46:34 +01:00
parent a7e70d0cb2
commit e0868ac866
6 changed files with 24 additions and 8 deletions
+2 -3
View File
@@ -16,8 +16,7 @@
#include "eeprom.h"
#include "key_matrix_instance.h"
#include "key_scanner.h"
uint8_t CurrentKeyStates[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
#include "key_states.h"
void UpdateUsbReports(void)
{
@@ -29,7 +28,7 @@ void UpdateUsbReports(void)
KeyMatrix_Scan(&KeyMatrix);
#endif
memcpy(CurrentKeyStates[SlotId_RightKeyboardHalf], KeyMatrix.keyStates, MAX_KEY_COUNT_PER_MODULE);
memcpy(KeyStates[SlotId_RightKeyboardHalf], KeyMatrix.keyStates, MAX_KEY_COUNT_PER_MODULE);
ResetActiveUsbBasicKeyboardReport();
ResetActiveUsbMediaKeyboardReport();