mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Virtual keyboard: set EV_SYN and EV_MSC event bits
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user