From a5eb6320c84701d32390429a3cfbde1f3d2a9b38 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 28 Dec 2017 11:46:01 +0100 Subject: [PATCH] Kaleidoscope::setup: Use the HID facade Instead of using `Keyboard.begin` directly, use `kaleidoscope::hid::initializeKeyboard`. While there, also initialize `ConsumerControl` and `SystemControl` the same way. Signed-off-by: Gergely Nagy --- src/Kaleidoscope.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Kaleidoscope.cpp b/src/Kaleidoscope.cpp index f4502920..e2cdba9f 100644 --- a/src/Kaleidoscope.cpp +++ b/src/Kaleidoscope.cpp @@ -10,7 +10,10 @@ Kaleidoscope_::Kaleidoscope_(void) { void Kaleidoscope_::setup(void) { KeyboardHardware.setup(); - Keyboard.begin(); + + kaleidoscope::hid::initializeKeyboard(); + kaleidoscope::hid::initializeConsumerControl(); + kaleidoscope::hid::initializeSystemControl(); // A workaround, so that the compiler does not optimize handleKeyswitchEvent out... // This is a no-op, but tricks the compiler into not being too helpful