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