diff options
-rw-r--r-- | hid/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp index e58096e8..1a415a6f 100644 --- a/hid/src/main.cpp +++ b/hid/src/main.cpp @@ -19,7 +19,7 @@ INLINE void cmdResetHid() { // 0 bytes CMD_SERIAL.read(); // unused CMD_SERIAL.read(); // unused CMD_SERIAL.read(); // unused - Keyboard.releaseAll(); + BootKeyboard.releaseAll(); AbsoluteMouse.releaseAll(); } @@ -30,9 +30,9 @@ INLINE void cmdKeyEvent() { // 2 bytes CMD_SERIAL.read(); // unused if (code != KEY_ERROR_UNDEFINED) { if (state) { - Keyboard.press(code); + BootKeyboard.press(code); } else { - Keyboard.release(code); + BootKeyboard.release(code); } } } @@ -79,7 +79,7 @@ INLINE void cmdMouseWheelEvent() { // 2 bytes // ----------------------------------------------------------------------------- void setup() { CMD_SERIAL.begin(CMD_SERIAL_SPEED); - Keyboard.begin(); + BootKeyboard.begin(); AbsoluteMouse.begin(); } |