diff options
author | Devaev Maxim <[email protected]> | 2018-08-02 23:56:45 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-02 23:56:45 +0300 |
commit | 12f504482c346ca0d23bb4a294bd7c0e1d657655 (patch) | |
tree | defe7ba0ff2d67c29200c04df8c7a70292d1361a /hid | |
parent | 1e47b50b5422ee9589b77395df0d42c70d408eff (diff) |
using boot keyboard
Diffstat (limited to 'hid')
-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(); } |