Updated EventDevice.cpp to handle EV_SYN properly

This commit is contained in:
jeffpk 2005-05-01 23:25:38 +00:00
parent 3a67a298a8
commit 4be7c6e38b

View file

@ -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];