Subversion Repositories Projects

Rev

Rev 483 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 483 Rev 484
Line 22... Line 22...
22
 
22
 
23
 
23
 
Line 24... Line 24...
24
void collect_evdev_devices()
24
void collect_evdev_devices()
Line 25... Line 25...
25
{
25
{
26
 
26
 
Line 27... Line 27...
27
  char event_dev_path[]="/dev/input/";
27
  //  char event_dev_path[]="/dev/input/";
Line 28... Line 28...
28
 
28
 
29
  struct direct **files;
29
  struct direct **files;
30
  evdevs_count = scandir(event_dev_path, &files, file_select, NULL);
30
  evdevs_count = scandir(evdev_path, &files, file_select, NULL);
Line 31... Line 31...
31
 
31
 
32
  printf("%d inputs found in %s\n" , evdevs_count,event_dev_path);
32
  printf("%d inputs found in %s\n" , evdevs_count,evdev_path);
33
 
33
 
Line 34... Line 34...
34
  int i=0;
34
  int i=0;
35
  for (i=1;i<evdevs_count+1;++i)
35
  for (i=1;i<evdevs_count+1;++i)
36
    {
36
    {