diff --git a/right/src/action.c b/right/src/action.c index 3eddfcb..d5ba4f5 100644 --- a/right/src/action.c +++ b/right/src/action.c @@ -68,7 +68,7 @@ void HandleMouseKey(key_action_t action) wasPreviousMouseActionWheelAction = isWheelAction; } -void HandleKeyboardEvents() { +void UpdateActiveUsbReports() { UsbMouseReport.buttons = 0; UsbMouseReport.x = 0; diff --git a/right/src/action.h b/right/src/action.h index cdc4f4f..5452620 100644 --- a/right/src/action.h +++ b/right/src/action.h @@ -91,6 +91,6 @@ typedef struct { } __attribute__ ((packed)) key_action_t; void HandleMouseKey(key_action_t action); -void HandleKeyboardEvents(); +void UpdateActiveUsbReports(); #endif diff --git a/right/src/main.c b/right/src/main.c index 8e124d6..6d84173 100644 --- a/right/src/main.c +++ b/right/src/main.c @@ -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(); }