From 62fe500637bd321bc75e74cc9ec97f4036a11406 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 26 Dec 2024 15:28:52 +0100 Subject: Virtual keyboard: set EV_SYN and EV_MSC event bits --- tools/gsr-global-hotkeys/keyboard_event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gsr-global-hotkeys/keyboard_event.c b/tools/gsr-global-hotkeys/keyboard_event.c index 8d27806..fdd9e80 100644 --- a/tools/gsr-global-hotkeys/keyboard_event.c +++ b/tools/gsr-global-hotkeys/keyboard_event.c @@ -270,6 +270,8 @@ static int setup_virtual_keyboard_input(const char *name) { } bool success = true; + success &= (ioctl(fd, UI_SET_EVBIT, EV_SYN) != -1); + success &= (ioctl(fd, UI_SET_EVBIT, EV_MSC) != -1); success &= (ioctl(fd, UI_SET_EVBIT, EV_KEY) != -1); for(int i = 1; i < KEY_MAX; ++i) { success &= (ioctl(fd, UI_SET_KEYBIT, i) != -1); -- cgit v1.2.3