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 <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent b58bb19ea3
commit a74169961c

@ -37,7 +37,7 @@ enabling the plugin:
#include <Kaleidoscope-SpaceCadet.h>
void setup() {
USE_PLUGINS(&SpaceCadetShift);
Kaleidoscope.use(&SpaceCadetShift);
Kaleidoscope.setup();
}

@ -40,7 +40,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
};
void setup() {
USE_PLUGINS(&SpaceCadetShift);
Kaleidoscope.use(&SpaceCadetShift);
Kaleidoscope.setup();
}

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

Loading…
Cancel
Save