|
|
@ -196,11 +196,11 @@ void send_key_events(int layer) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else if (mappedKey.flags & SYNTHETIC_KEY) {
|
|
|
|
} else if (mappedKey.flags & SYNTHETIC_KEY) {
|
|
|
|
if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M|| mappedKey.rawKey == KEY_MOUSE_BTN_R) {
|
|
|
|
if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M|| mappedKey.rawKey == KEY_MOUSE_BTN_R) {
|
|
|
|
if (key_toggled_on (switchState)) {
|
|
|
|
if (key_toggled_on (switchState)) {
|
|
|
|
Mouse.press(mappedKey.rawKey);
|
|
|
|
Mouse.press(mappedKey.rawKey);
|
|
|
|
} else if (key_is_pressed(switchState)) {
|
|
|
|
} else if (key_is_pressed(switchState)) {
|
|
|
|
} else if (Mouse.isPressed(mappedKey.rawKey) ){
|
|
|
|
} else if (Mouse.isPressed(mappedKey.rawKey) ) {
|
|
|
|
Mouse.release(mappedKey.rawKey);
|
|
|
|
Mouse.release(mappedKey.rawKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|