|
|
@ -33,8 +33,10 @@ static bool handleKeyswitchEventDefault(Key mappedKey, byte row, byte col, uint8
|
|
|
|
|
|
|
|
|
|
|
|
if (mappedKey.flags & SYNTHETIC) {
|
|
|
|
if (mappedKey.flags & SYNTHETIC) {
|
|
|
|
handleSyntheticKeyswitchEvent(mappedKey, keyState);
|
|
|
|
handleSyntheticKeyswitchEvent(mappedKey, keyState);
|
|
|
|
} else if (keyIsPressed(keyState)) {
|
|
|
|
} else if (keyToggledOn(keyState)) {
|
|
|
|
kaleidoscope::hid::pressKey(mappedKey);
|
|
|
|
kaleidoscope::hid::pressKey(mappedKey);
|
|
|
|
|
|
|
|
} else if (keyIsPressed(keyState)) {
|
|
|
|
|
|
|
|
kaleidoscope::hid::pressKey(mappedKey, false);
|
|
|
|
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
|
|
|
|
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
|
|
|
|
kaleidoscope::hid::releaseKey(mappedKey);
|
|
|
|
kaleidoscope::hid::releaseKey(mappedKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|