port to hid facade

pull/389/head^2
Jesse Vincent 8 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/hid.h>
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

Loading…
Cancel
Save