port to hid facade

pull/389/head^2
Jesse Vincent 7 years ago
parent 8d00a83a44
commit a38f033e2b
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -17,6 +17,7 @@
*/ */
#include <Kaleidoscope-ShapeShifter.h> #include <Kaleidoscope-ShapeShifter.h>
#include <kaleidoscope/hid.h>
namespace kaleidoscope { namespace kaleidoscope {
@ -35,8 +36,8 @@ void ShapeShifter::loopHook(bool is_post_clear) {
if (is_post_clear) if (is_post_clear)
return; return;
mod_active_ = Keyboard.isModifierActive(Key_LeftShift.keyCode) || mod_active_ = hid::isModifierKeyActive(Key_LeftShift) ||
Keyboard.isModifierActive(Key_RightShift.keyCode); hid::isModifierKeyActive(Key_RightShift);
} }
Key Key

Loading…
Cancel
Save