b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | } |