blob: 6a9813e7d33e3db9cbeb465ebd0883d4c7f097cb [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- 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 }