Rename HandleKeyboardEvents() to UpdateActiveUsbReports().
This commit is contained in:
@@ -68,7 +68,7 @@ void HandleMouseKey(key_action_t action)
|
||||
wasPreviousMouseActionWheelAction = isWheelAction;
|
||||
}
|
||||
|
||||
void HandleKeyboardEvents() {
|
||||
void UpdateActiveUsbReports() {
|
||||
|
||||
UsbMouseReport.buttons = 0;
|
||||
UsbMouseReport.x = 0;
|
||||
|
||||
@@ -91,6 +91,6 @@ typedef struct {
|
||||
} __attribute__ ((packed)) key_action_t;
|
||||
|
||||
void HandleMouseKey(key_action_t action);
|
||||
void HandleKeyboardEvents();
|
||||
void UpdateActiveUsbReports();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -74,7 +74,7 @@ void UpdateUsbReports()
|
||||
// I2cRead(I2C_MAIN_BUS_BASEADDR, I2C_ADDRESS_LEFT_KEYBOARD_HALF, CurrentKeyStates[SLOT_ID_LEFT_KEYBOARD_HALF], LEFT_KEYBOARD_HALF_KEY_COUNT);
|
||||
// }
|
||||
|
||||
HandleKeyboardEvents();
|
||||
UpdateActiveUsbReports();
|
||||
|
||||
SwitchActiveUsbKeyboardReport();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user