From a38f033e2b30b4369c89d50dbd96babb08433055 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 25 Jul 2017 14:47:30 -0700 Subject: [PATCH] port to hid facade --- src/Kaleidoscope/ShapeShifter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Kaleidoscope/ShapeShifter.cpp b/src/Kaleidoscope/ShapeShifter.cpp index 63859c04..e2fe3dc8 100644 --- a/src/Kaleidoscope/ShapeShifter.cpp +++ b/src/Kaleidoscope/ShapeShifter.cpp @@ -17,6 +17,7 @@ */ #include +#include namespace kaleidoscope { @@ -35,8 +36,8 @@ void ShapeShifter::loopHook(bool is_post_clear) { if (is_post_clear) return; - mod_active_ = Keyboard.isModifierActive(Key_LeftShift.keyCode) || - Keyboard.isModifierActive(Key_RightShift.keyCode); + mod_active_ = hid::isModifierKeyActive(Key_LeftShift) || + hid::isModifierKeyActive(Key_RightShift); } Key