157,12 → 157,15 |
{ |
|
printf("%d type:%d code:%d val:%d \n",counter,ev[counter].type,ev[counter].code,ev[counter].value); |
|
// if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
// for logitech problem |
if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
if (ev[counter].type==EV_KEY) evdev_button[ ev[counter].code-256]= ev[counter].value; |
} |
|
|
for (counter=0;counter<10;counter++) |
for (counter=0;counter<20;counter++) |
printf("A%d %d -" , counter, evdev_rel_axis[counter] ); |
printf("\n"); |
|