Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 6 years ago
parent 3a2683b3ee
commit 9c1d576c9a

@ -10,20 +10,6 @@
#define RELEASED 0 #define RELEASED 0
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void TestMode_::begin(void) {
Kaleidoscope.useLoopHook(this->legacyLoopHook);
}
void TestMode_::legacyLoopHook(bool is_post_clear) {
if (is_post_clear)
return;
TestMode.beforeReportingState();
}
#endif
kaleidoscope::EventHandlerResult TestMode_::beforeReportingState() { kaleidoscope::EventHandlerResult TestMode_::beforeReportingState() {
if (KeyboardHardware.isKeyswitchPressed(R0C0) && if (KeyboardHardware.isKeyswitchPressed(R0C0) &&
KeyboardHardware.isKeyswitchPressed(R0C6) && KeyboardHardware.isKeyswitchPressed(R0C6) &&

@ -14,16 +14,6 @@ class TestMode_ : public kaleidoscope::Plugin {
kaleidoscope::EventHandlerResult beforeReportingState(); kaleidoscope::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
private: private:
static void run_tests(); static void run_tests();
static void test_leds(); static void test_leds();

Loading…
Cancel
Save