Subversion Repositories Projects

Rev

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++)
Line 157... Line 157...
157
        {
157
        {
-
 
158
         
-
 
159
          printf("%d type:%d code:%d val:%d \n",counter,ev[counter].type,ev[counter].code,ev[counter].value);
-
 
160
 
158
         
161
          //      if (ev[counter].type==EV_REL) evdev_rel_axis[ 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);
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;
Line 161... Line 164...
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
     
Line 164... Line 167...
164
     
167
     
165
      for (counter=0;counter<10;counter++)
168
      for (counter=0;counter<20;counter++)