|
|
@ -9,11 +9,8 @@ static bool handleSyntheticKeyswitchEvent(Key mappedKey, uint8_t keyState) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if (mappedKey.flags & IS_CONSUMER) {
|
|
|
|
if (mappedKey.flags & IS_CONSUMER) {
|
|
|
|
if (keyIsPressed(keyState)) {
|
|
|
|
if (keyIsPressed(keyState))
|
|
|
|
} else if (keyWasPressed(keyState)) {
|
|
|
|
|
|
|
|
kaleidoscope::hid::pressConsumerControl(mappedKey);
|
|
|
|
kaleidoscope::hid::pressConsumerControl(mappedKey);
|
|
|
|
kaleidoscope::hid::releaseConsumerControl(mappedKey);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (mappedKey.flags & IS_SYSCTL) {
|
|
|
|
} else if (mappedKey.flags & IS_SYSCTL) {
|
|
|
|
if (keyIsPressed(keyState)) {
|
|
|
|
if (keyIsPressed(keyState)) {
|
|
|
|
} else if (keyWasPressed(keyState)) {
|
|
|
|
} else if (keyWasPressed(keyState)) {
|
|
|
|