port to new hid facade

pull/389/head
Jesse Vincent 7 years ago
parent 9953d874a6
commit 13646a6581
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -18,6 +18,7 @@
#include <Kaleidoscope-LED-ActiveModColor.h> #include <Kaleidoscope-LED-ActiveModColor.h>
#include <Kaleidoscope-Ranges.h> #include <Kaleidoscope-Ranges.h>
#include <kaleidoscope/hid.h>
namespace kaleidoscope { namespace kaleidoscope {
@ -49,7 +50,7 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) {
if (k.raw < Key_LeftControl.raw || k.raw > Key_RightGui.raw) if (k.raw < Key_LeftControl.raw || k.raw > Key_RightGui.raw)
continue; continue;
if (Keyboard.isModifierActive(k.keyCode)) if (hid::isModifierKeyActive(k))
LEDControl.setCrgbAt(r, c, highlight_color); LEDControl.setCrgbAt(r, c, highlight_color);
} }
} }

Loading…
Cancel
Save