|
|
@ -54,8 +54,7 @@ void handle_key_event(byte row, byte col, uint8_t currentState, uint8_t previous
|
|
|
|
|
|
|
|
|
|
|
|
if (keymaps[primary_keymap][row][col].flags & SWITCH_TO_KEYMAP) {
|
|
|
|
if (keymaps[primary_keymap][row][col].flags & SWITCH_TO_KEYMAP) {
|
|
|
|
handle_keymap_key_event(keymaps[primary_keymap][row][col], currentState, previousState);
|
|
|
|
handle_keymap_key_event(keymaps[primary_keymap][row][col], currentState, previousState);
|
|
|
|
}
|
|
|
|
} else if (mappedKey.flags & SYNTHETIC_KEY) {
|
|
|
|
else if (mappedKey.flags & SYNTHETIC_KEY) {
|
|
|
|
|
|
|
|
handle_synthetic_key_event( mappedKey, currentState, previousState);
|
|
|
|
handle_synthetic_key_event( mappedKey, currentState, previousState);
|
|
|
|
} else if (key_is_pressed(currentState, previousState)) {
|
|
|
|
} else if (key_is_pressed(currentState, previousState)) {
|
|
|
|
press_key(mappedKey);
|
|
|
|
press_key(mappedKey);
|
|
|
|