Inline isKeyPressed(). Rename key to action within HandleMouseKey() and a few other identifiers to make the code more intuitive.

This commit is contained in:
László Monda
2017-02-26 01:34:38 +01:00
parent 66d41a0d49
commit 476a2fb89a
4 changed files with 27 additions and 42 deletions

View File

@@ -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(ActiveUsbKeyboardReport, &UsbMouseReport);
HandleKeyboardEvents();
SwitchActiveUsbKeyboardReport();
}