24,12 → 24,12 |
void collect_evdev_devices() |
{ |
|
char event_dev_path[]="/dev/input/"; |
// char event_dev_path[]="/dev/input/"; |
|
struct direct **files; |
evdevs_count = scandir(event_dev_path, &files, file_select, NULL); |
evdevs_count = scandir(evdev_path, &files, file_select, NULL); |
|
printf("%d inputs found in %s\n" , evdevs_count,event_dev_path); |
printf("%d inputs found in %s\n" , evdevs_count,evdev_path); |
|
int i=0; |
for (i=1;i<evdevs_count+1;++i) |
36,7 → 36,7 |
{ |
|
printf("%s",files[i-1]->d_name); |
sprintf(evdevs[i].fname,"%s%s",event_dev_path,files[i-1]->d_name); |
sprintf(evdevs[i].fname,"%s%s",evdev_path,files[i-1]->d_name); |
int act_fd; |
|
if ((act_fd = open(evdevs[i].fname, O_RDONLY)) < 0) |