You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
447 B

  1. --- a/src/parse.c
  2. +++ b/src/parse.c
  3. @@ -289,6 +289,12 @@ int ParseCommand( char * pchCommandLine)
  4. pchEventDevice = strdup( pchValue) ;
  5. return 1 ;
  6. }
  7. + if( (pchValue != NULL) &&
  8. + (strncmp( pchValue, "/dev/event", 6) == 0) )
  9. + {
  10. + pchEventDevice = strdup( pchValue) ;
  11. + return 1 ;
  12. + }
  13. printf( "Option 'device' expects a /dev/input/eventX argument\n");
  14. return -1 ;
  15. }