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 f68193553a
commit 0c9ff2f22b

@ -31,7 +31,7 @@ the box, without any further configuration:
#include <Kaleidoscope-TypingBreaks.h> #include <Kaleidoscope-TypingBreaks.h>
void setup (void) { void setup (void) {
USE_PLUGINS (&TypingBreaks); Kaleidoscope.use (&TypingBreaks);
Kaleidoscope.setup (); Kaleidoscope.setup ();
} }

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

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

Loading…
Cancel
Save