Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions drv_G15.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ void drv_G15_keyDown(unsigned char scancode)
event.code = scancode;
event.value = 1;
write(uinput_fd, &event, sizeof(event));

/* hopefully this makes the system report the keys */

event.type = EV_SYN;
event.code = SYN_REPORT;
event.value = 0;
write(uinput_fd, &event, sizeof(event));
}

void drv_G15_keyUp(unsigned char scancode)
Expand All @@ -117,6 +124,13 @@ void drv_G15_keyUp(unsigned char scancode)
event.code = scancode;
event.value = 0;
write(uinput_fd, &event, sizeof(event));

/* hopefully this makes the system report the keys */

event.type = EV_SYN;
event.code = SYN_REPORT;
event.value = 0;
write(uinput_fd, &event, sizeof(event));
}

void drv_G15_keyDownUp(unsigned char scancode)
Expand Down