From e249fd2de6d0383b23721f628be4e63c00da5c70 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 14 May 2018 06:18:29 +0200 Subject: [PATCH] handleKeyswitchEvent: Fix a thinko that broke old-style plugins Fixed a conditional so that the event handlers of old-style plugins will be called. Without this, they don't, and old-style plugins that install event handlers, would not work. Signed-off-by: Gergely Nagy --- src/key_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key_events.cpp b/src/key_events.cpp index e9b6aea7..1a7d06cb 100644 --- a/src/key_events.cpp +++ b/src/key_events.cpp @@ -94,7 +94,7 @@ void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState) { // Keypresses with out-of-bounds (row,col) start here in the processing chain // Legacy event handlers -#if KALEIDOSCOPE_ENABLE_V1_API +#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API for (byte i = 0; Kaleidoscope.eventHandlers[i] != NULL && i < HOOK_MAX; i++) { Kaleidoscope_::eventHandlerHook handler = Kaleidoscope.eventHandlers[i]; mappedKey = (*handler)(mappedKey, row, col, keyState);