aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kaleidoscope-LayerHighlighter.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2018-11-25 11:07:28 -0500
committerBrian Cully <bjc@kublai.com>2018-11-25 11:07:28 -0500
commit9d9d273d47c1c3beddabdd282e4cd0c2fd52509f (patch)
tree1b987775cda4aa01fe2912d180fcff12abd3f79a /src/Kaleidoscope-LayerHighlighter.h
parent9e3dc09041aa5ef952033301f304a962da198f62 (diff)
downloadKaleidoscope-LayerHighlighter-9d9d273d47c1c3beddabdd282e4cd0c2fd52509f.tar.gz
Kaleidoscope-LayerHighlighter-9d9d273d47c1c3beddabdd282e4cd0c2fd52509f.zip
Toggle LEDs only when layer key is pressed.
Fixes interactions with NumPad plugin when there are no other LED effects present.
Diffstat (limited to 'src/Kaleidoscope-LayerHighlighter.h')
-rw-r--r--src/Kaleidoscope-LayerHighlighter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Kaleidoscope-LayerHighlighter.h b/src/Kaleidoscope-LayerHighlighter.h
index 65ae483..ba67395 100644
--- a/src/Kaleidoscope-LayerHighlighter.h
+++ b/src/Kaleidoscope-LayerHighlighter.h
@@ -10,9 +10,11 @@ class LayerHighlighter : public kaleidoscope::Plugin {
uint8_t lockHue;
kaleidoscope::EventHandlerResult onSetup(void);
+ kaleidoscope::EventHandlerResult onKeyswitchEvent(Key &mapped_key, byte row, byte col, uint8_t key_state);
kaleidoscope::EventHandlerResult afterEachCycle();
private:
const uint8_t layer;
static byte row, col;
+ uint8_t savedLEDMode;
};