134,6 → 134,8 |
inputs[i].evdev_rel_axis = (int *) calloc( 100, sizeof( int ) ); |
inputs[i].evdev_button = (char *)calloc( 500, sizeof( char ) ); |
|
|
printf(" opening evdev %s\n",inputs[i].fname); |
if ((inputs[i].evdev_out_fd = open(inputs[i].fname, O_WRONLY)) < 0) |
{ |
printf(" cant open %s for writing\n",inputs[i].fname); |
230,8 → 232,8 |
|
for (counter = 0; counter < (int) (read_bytes / sizeof(struct input_event)); counter++) |
{ |
//print_event_str(ev[counter].type); |
// printf(" code:%d val:%d \n",ev[counter].code,ev[counter].value); |
// print_event_str(ev[counter].type); |
// printf(" code:%d val:%d \n",ev[counter].code,ev[counter].value); |
|
// if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
// for logitech problem |