mirror of
https://gitlab.com/interception/linux/plugins/caps2esc.git
synced 2025-04-05 14:22:54 +00:00
Another evdev protocol infringement
Even though Peter Hutterer commented that it's not technically needed to send SYN/delay when the sequence of events is of different keys, it seems to be shown necessary to do so, otherwise events are dropped in random situations.
This commit is contained in:
parent
27efcbbf96
commit
9f353f96c6
@ -66,6 +66,8 @@ int main(void) {
|
|||||||
if (!esc_give_up && input.value) {
|
if (!esc_give_up && input.value) {
|
||||||
esc_give_up = 1;
|
esc_give_up = 1;
|
||||||
write_event(&ctrl_down);
|
write_event(&ctrl_down);
|
||||||
|
write_event(&syn);
|
||||||
|
usleep(20000);
|
||||||
}
|
}
|
||||||
} else if (equal(&input, &capslock_down)) {
|
} else if (equal(&input, &capslock_down)) {
|
||||||
capslock_is_down = 1;
|
capslock_is_down = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user