Stop using deprecated interfaces

Use `Kaleidoscope.use`, `Kaleidoscope.useEventHandlerHook`, and
`Kaleidoscope.useLoopHook` instead of the deprecated `USE_PLUGINS`,
`event_handler_hook_use` and `loop_hook_use` interfaces.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent a31d686911
commit 2c27bf8476

@ -84,7 +84,7 @@ void tapDanceAction(uint8_t tap_dance_index, uint8_t tap_count,
} }
void setup() { void setup() {
USE_PLUGINS(&TapDance); Kaleidoscope.use(&TapDance);
Kaleidoscope.setup (); Kaleidoscope.setup ();
} }

@ -53,7 +53,7 @@ void tapDanceAction(uint8_t tap_dance_index, byte row, byte col, uint8_t tap_cou
} }
void setup() { void setup() {
USE_PLUGINS(&TapDance); Kaleidoscope.use(&TapDance);
Kaleidoscope.setup(); Kaleidoscope.setup();
} }

@ -100,8 +100,8 @@ TapDance::TapDance(void) {
} }
void TapDance::begin(void) { void TapDance::begin(void) {
event_handler_hook_use(eventHandlerHook); Kaleidoscope.useEventHandlerHook(eventHandlerHook);
loop_hook_use(loopHook); Kaleidoscope.useLoopHook(loopHook);
} }
void TapDance::actionKeys(uint8_t tap_count, ActionType tap_dance_action, uint8_t max_keys, const Key tap_keys[]) { void TapDance::actionKeys(uint8_t tap_count, ActionType tap_dance_action, uint8_t max_keys, const Key tap_keys[]) {

Loading…
Cancel
Save