From 13646a658108952b0135c3585e48471ffc3b27f2 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 25 Jul 2017 14:49:02 -0700 Subject: [PATCH] port to new hid facade --- src/Kaleidoscope/LED-ActiveModColor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Kaleidoscope/LED-ActiveModColor.cpp b/src/Kaleidoscope/LED-ActiveModColor.cpp index 52702815..f4f77f46 100644 --- a/src/Kaleidoscope/LED-ActiveModColor.cpp +++ b/src/Kaleidoscope/LED-ActiveModColor.cpp @@ -18,6 +18,7 @@ #include #include +#include namespace kaleidoscope { @@ -49,7 +50,7 @@ void ActiveModColorEffect::loopHook(bool is_post_clear) { if (k.raw < Key_LeftControl.raw || k.raw > Key_RightGui.raw) continue; - if (Keyboard.isModifierActive(k.keyCode)) + if (hid::isModifierKeyActive(k)) LEDControl.setCrgbAt(r, c, highlight_color); } }