mirror of
https://gitlab.com/interception/linux/plugins/caps2esc.git
synced 2025-05-21 09:42:25 +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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user