|
|
@ -49,17 +49,6 @@ class Leader : public kaleidoscope::Plugin {
|
|
|
|
EventHandlerResult onKeyswitchEvent(Key &mapped_key, byte row, byte col, uint8_t keyState);
|
|
|
|
EventHandlerResult onKeyswitchEvent(Key &mapped_key, byte row, byte col, uint8_t keyState);
|
|
|
|
EventHandlerResult afterEachCycle();
|
|
|
|
EventHandlerResult afterEachCycle();
|
|
|
|
|
|
|
|
|
|
|
|
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
|
|
|
|
|
|
|
|
kaleidoscope::EventHandlerResult onSetup() {
|
|
|
|
|
|
|
|
return kaleidoscope::EventHandlerResult::OK;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void begin();
|
|
|
|
|
|
|
|
static Key legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state);
|
|
|
|
|
|
|
|
static void legacyLoopHook(bool is_post_clear);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static Key sequence_[LEADER_MAX_SEQUENCE_LENGTH + 1];
|
|
|
|
static Key sequence_[LEADER_MAX_SEQUENCE_LENGTH + 1];
|
|
|
|
static uint8_t sequence_pos_;
|
|
|
|
static uint8_t sequence_pos_;
|
|
|
|