Adapt MagicCombo plugin to KeyEvent handlers

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent 3e304a2a3f
commit 4e445817fc
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -28,7 +28,7 @@ EventHandlerResult MagicCombo::onNameQuery() {
return ::Focus.sendName(F("MagicCombo")); return ::Focus.sendName(F("MagicCombo"));
} }
EventHandlerResult MagicCombo::beforeReportingState() { EventHandlerResult MagicCombo::afterEachCycle() {
for (byte i = 0; i < magiccombo::combos_length; i++) { for (byte i = 0; i < magiccombo::combos_length; i++) {
bool match = true; bool match = true;
byte j; byte j;

@ -49,7 +49,7 @@ class MagicCombo : public kaleidoscope::Plugin {
static uint16_t min_interval; static uint16_t min_interval;
EventHandlerResult onNameQuery(); EventHandlerResult onNameQuery();
EventHandlerResult beforeReportingState(); EventHandlerResult afterEachCycle();
private: private:
static uint16_t start_time_; static uint16_t start_time_;

Loading…
Cancel
Save