From cf08f96d1ca57392387ef24cd9673b414d4129c9 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 25 Jul 2017 11:11:00 -0700 Subject: [PATCH] Port to new HID facade --- src/Kaleidoscope-Macros.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Kaleidoscope-Macros.cpp b/src/Kaleidoscope-Macros.cpp index 2ea5954d..b59095d3 100644 --- a/src/Kaleidoscope-Macros.cpp +++ b/src/Kaleidoscope-Macros.cpp @@ -1,4 +1,5 @@ #include "Kaleidoscope-Macros.h" +#include "kaleidoscope/hid.h" __attribute__((weak)) const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { @@ -14,11 +15,11 @@ static void readKeyCodeAndPlay(const macro_t *macro_p, uint8_t flags, uint8_t ke if (keyIsPressed(keyStates)) { handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED); - Keyboard.sendReport(); + kaleidoscope::hid::sendKeyboardReport(); } if (keyWasPressed(keyStates)) { handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED); - Keyboard.sendReport(); + kaleidoscope::hid::sendKeyboardReport(); } } @@ -163,9 +164,9 @@ void Macros_::type(const char *string) { continue; handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED); - Keyboard.sendReport(); + kaleidoscope::hid::sendKeyboardReport(); handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED); - Keyboard.sendReport(); + kaleidoscope::hid::sendKeyboardReport(); } }