From a74169961c428336568a34874dd19985ad42d019 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 12:38:21 +0200 Subject: [PATCH] Stop using deprecated interfaces Use `Kaleidoscope.use` and `Kaleidoscope.useEventHandlerHook` instead of the deprecated `USE_PLUGINS` and `event_handler_hook_use` interfaces. Signed-off-by: Gergely Nagy --- README.md | 2 +- examples/SpaceCadet/SpaceCadet.ino | 2 +- src/Kaleidoscope/SpaceCadet.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0da50974..88aa8e22 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ enabling the plugin: #include void setup() { - USE_PLUGINS(&SpaceCadetShift); + Kaleidoscope.use(&SpaceCadetShift); Kaleidoscope.setup(); } diff --git a/examples/SpaceCadet/SpaceCadet.ino b/examples/SpaceCadet/SpaceCadet.ino index b945f0e6..4dd5c4a4 100644 --- a/examples/SpaceCadet/SpaceCadet.ino +++ b/examples/SpaceCadet/SpaceCadet.ino @@ -40,7 +40,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; void setup() { - USE_PLUGINS(&SpaceCadetShift); + Kaleidoscope.use(&SpaceCadetShift); Kaleidoscope.setup(); } diff --git a/src/Kaleidoscope/SpaceCadet.cpp b/src/Kaleidoscope/SpaceCadet.cpp index fb9f8cfa..7ee88dd1 100644 --- a/src/Kaleidoscope/SpaceCadet.cpp +++ b/src/Kaleidoscope/SpaceCadet.cpp @@ -30,7 +30,7 @@ SpaceCadetShift::SpaceCadetShift() { } void SpaceCadetShift::begin() { - event_handler_hook_use(eventHandlerHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); } Key SpaceCadetShift::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) {