mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-11 03:09:57 +01:00
Updated EventDevice.cpp to handle EV_SYN properly
This commit is contained in:
parent
3a67a298a8
commit
4be7c6e38b
|
|
@ -313,6 +313,9 @@ int EventDevice::poll(){
|
|||
int numEventsRead = (int) (read_bytes / sizeof(struct input_event));
|
||||
for(i=0;i<numEventsRead;i++) {
|
||||
switch(events[i].type) {
|
||||
case EV_SYN:
|
||||
// not sure what to do with it, ignore for now -- JPK
|
||||
break;
|
||||
case EV_KEY: {
|
||||
dataChanged = 1;
|
||||
int buttonIndex = buttonLookup[events[i].code];
|
||||
|
|
|
|||
Loading…
Reference in a new issue