|
|
@ -193,9 +193,13 @@ class Keyboard {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void releaseAllKeys() __attribute__((noinline)) {
|
|
|
|
void releaseAllKeys() __attribute__((noinline)) {
|
|
|
|
resetModifierTracking();
|
|
|
|
resetModifierTracking();
|
|
|
|
|
|
|
|
if (boot_keyboard_.getProtocol() == HID_BOOT_PROTOCOL) {
|
|
|
|
|
|
|
|
boot_keyboard_.releaseAll();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
nkro_keyboard_.releaseAll();
|
|
|
|
nkro_keyboard_.releaseAll();
|
|
|
|
consumer_control_.releaseAll();
|
|
|
|
consumer_control_.releaseAll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
void pressConsumerControl(Key mapped_key) {
|
|
|
|
void pressConsumerControl(Key mapped_key) {
|
|
|
|
consumer_control_.press(CONSUMER(mapped_key));
|
|
|
|
consumer_control_.press(CONSUMER(mapped_key));
|
|
|
|
}
|
|
|
|
}
|
|
|
|