Stop using obsolete functions

Use `Kaleidoscope.use` and `Kaleidoscope.useEventHandlerHook` instead of the
obsolete `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 6a80f8f059
commit a57679c014

@ -24,7 +24,7 @@ configuration is necessary.
#include <Kaleidoscope-Escape-OneShot.h> #include <Kaleidoscope-Escape-OneShot.h>
void setup () { void setup () {
USE_PLUGINS(&OneShot, &EscapeOneShot); Kaleidoscope.use(&OneShot, &EscapeOneShot);
Kaleidoscope.setup (); Kaleidoscope.setup ();
} }

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

@ -26,7 +26,7 @@ EscapeOneShot::EscapeOneShot(void) {
} }
void EscapeOneShot::begin(void) { void EscapeOneShot::begin(void) {
event_handler_hook_use(eventHandlerHook); Kaleidoscope.useEventHandlerHook(eventHandlerHook);
} }
Key EscapeOneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) { Key EscapeOneShot::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) {

Loading…
Cancel
Save