Rev 130 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 130 | Rev 140 | ||
---|---|---|---|
Line 155... | Line 155... | ||
155 | 155 | ||
156 | for (counter = 0; counter < (int) (read_bytes / sizeof(struct input_event)); counter++) |
156 | for (counter = 0; counter < (int) (read_bytes / sizeof(struct input_event)); counter++) |
157 | { |
157 | { |
158 | 158 | ||
159 | printf("%d type:%d code:%d val:%d \n",counter,ev[counter].type,ev[counter].code,ev[counter].value); |
159 | printf("%d type:%d code:%d val:%d \n",counter,ev[counter].type,ev[counter].code,ev[counter].value); |
- | 160 | ||
- | 161 | // if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
|
- | 162 | // for logitech problem |
|
160 | if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
163 | if (ev[counter].type==EV_REL) evdev_rel_axis[ ev[counter].code]= ev[counter].value; |
161 | if (ev[counter].type==EV_KEY) evdev_button[ ev[counter].code-256]= ev[counter].value; |
164 | if (ev[counter].type==EV_KEY) evdev_button[ ev[counter].code-256]= ev[counter].value; |
162 | } |
165 | } |
163 | 166 | ||
164 | 167 | ||
165 | for (counter=0;counter<10;counter++) |
168 | for (counter=0;counter<20;counter++) |
166 | printf("A%d %d -" , counter, evdev_rel_axis[counter] ); |
169 | printf("A%d %d -" , counter, evdev_rel_axis[counter] ); |
167 | printf("\n"); |
170 | printf("\n"); |
168 | 171 | ||
169 | for (counter=0;counter<10;counter++) |
172 | for (counter=0;counter<10;counter++) |
170 | printf("B%d %d -" , counter, evdev_button[counter] ); |
173 | printf("B%d %d -" , counter, evdev_button[counter] ); |