Drop the V1 plugin API compatibility code

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent 8fffb2622d
commit 560d07a2a6

@ -108,20 +108,6 @@ bool FingerPainter::focusHook(const char *command) {
return true; return true;
} }
// Legacy V1 API
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void FingerPainter::begin() {
Kaleidoscope.useEventHandlerHook(legacyEventHandler);
}
Key FingerPainter::legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state) {
EventHandlerResult r = ::FingerPainter.onKeyswitchEvent(mapped_key, row, col, key_state);
if (r == EventHandlerResult::OK)
return mapped_key;
return Key_NoKey;
}
#endif
} }
kaleidoscope::FingerPainter FingerPainter; kaleidoscope::FingerPainter FingerPainter;

@ -35,11 +35,6 @@ class FingerPainter : public LEDMode {
void update(void) final; void update(void) final;
void refreshAt(byte row, byte col) final; void refreshAt(byte row, byte col) final;
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
void begin();
static Key legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state);
#endif
private: private:
static uint16_t color_base_; static uint16_t color_base_;
static bool edit_mode_; static bool edit_mode_;

Loading…
Cancel
Save