Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent d725a7d16a
commit 95600ce02f

@ -61,21 +61,6 @@ EventHandlerResult ActiveModColorEffect::beforeReportingState() {
return EventHandlerResult::OK;
}
// Legacy API
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void ActiveModColorEffect::begin() {
Kaleidoscope.useLoopHook(legacyLoopHook);
}
void ActiveModColorEffect::legacyLoopHook(bool is_post_clear) {
if (is_post_clear)
return;
::ActiveModColorEffect.beforeReportingState();
}
#endif
}
kaleidoscope::ActiveModColorEffect ActiveModColorEffect;

@ -30,16 +30,6 @@ class ActiveModColorEffect : public kaleidoscope::Plugin {
static cRGB sticky_color;
EventHandlerResult beforeReportingState();
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
kaleidoscope::EventHandlerResult onSetup() {
return kaleidoscope::EventHandlerResult::OK;
}
protected:
void begin();
static void legacyLoopHook(bool is_post_clear);
#endif
};
}

Loading…
Cancel
Save