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) {