Rev 486 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 486 | Rev 505 | ||
---|---|---|---|
Line 132... | Line 132... | ||
132 | for ( i =0 ; i< input_count;i++) |
132 | for ( i =0 ; i< input_count;i++) |
133 | { |
133 | { |
134 | inputs[i].evdev_rel_axis = (int *) calloc( 100, sizeof( int ) ); |
134 | inputs[i].evdev_rel_axis = (int *) calloc( 100, sizeof( int ) ); |
135 | inputs[i].evdev_button = (char *)calloc( 500, sizeof( char ) ); |
135 | inputs[i].evdev_button = (char *)calloc( 500, sizeof( char ) ); |
Line -... | Line 136... | ||
- | 136 | ||
- | 137 | ||
136 | 138 | printf(" opening evdev %s\n",inputs[i].fname); |
|
137 | if ((inputs[i].evdev_out_fd = open(inputs[i].fname, O_WRONLY)) < 0) |
139 | if ((inputs[i].evdev_out_fd = open(inputs[i].fname, O_WRONLY)) < 0) |
138 | { |
140 | { |
Line 139... | Line 141... | ||
139 | printf(" cant open %s for writing\n",inputs[i].fname); |
141 | printf(" cant open %s for writing\n",inputs[i].fname); |
Line 228... | Line 230... | ||
228 | 230 | ||
Line 229... | Line 231... | ||
229 | } |
231 | } |
230 | 232 | ||
231 | for (counter = 0; counter < (int) (read_bytes / sizeof(struct input_event)); counter++) |
233 | for (counter = 0; counter < (int) (read_bytes / sizeof(struct input_event)); counter++) |
232 | { |
234 | { |
Line 233... | Line 235... | ||
233 | //print_event_str(ev[counter].type); |
235 | // print_event_str(ev[counter].type); |
234 | // printf(" code:%d val:%d \n",ev[counter].code,ev[counter].value); |
236 | // printf(" code:%d val:%d \n",ev[counter].code,ev[counter].value); |
235 | 237 | ||
236 | // if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
238 | // if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |