Only grab event devices

This commit is contained in:
Cameron Gutman 2016-01-06 12:36:09 -06:00
parent a8fd49a234
commit 5836b3292b

View File

@ -260,6 +260,11 @@ static int enumerateDevices(void) {
continue;
}
if (strstr(dirEnt->d_name, "event") == NULL) {
// Skip non-event devices
continue;
}
startPollForDevice(dirEnt->d_name);
}