There are no available options for this view.

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jasonbeaudoin, Fri Aug 15 08:28:04 2008 UTC revision 1.13 by jasonbeaudoin, Fri Aug 15 14:51:10 2008 UTC
# Line 244  Line 244 
244    
245          if (sc->sc_x != td->x) {          if (sc->sc_x != td->x) {
246  #ifdef WST_DEBUG  #ifdef WST_DEBUG
247                  printf("x = %d", td->x);                  printf("x = %d\n", td->x);
248  #endif  #endif
249                  events[nevents].type = WSCONS_EVENT_TABLET_X;                  events[nevents].type = WSCONS_EVENT_TABLET_X;
250                  events[nevents].value = td->x;                  events[nevents].value = td->x;
# Line 252  Line 252 
252          }          }
253          if (sc->sc_y != td->y) {          if (sc->sc_y != td->y) {
254  #ifdef WST_DEBUG  #ifdef WST_DEBUG
255                  printf("y = %d", td->y);                  printf("y = %d\n", td->y);
256  #endif  #endif
257                  events[nevents].type = WSCONS_EVENT_TABLET_Y;                  events[nevents].type = WSCONS_EVENT_TABLET_Y;
258                  events[nevents].value = td->y;                  events[nevents].value = td->y;
# Line 260  Line 260 
260          }          }
261          if (sc->sc_p != td->p) {          if (sc->sc_p != td->p) {
262  #ifdef WST_DEBUG  #ifdef WST_DEBUG
263                  events[nevents].type = WSCONS_EVENT_TABLET_PRESSURE;                  printf("p = %d\n", td->p);
264  #endif  #endif
265                    events[nevents].type = WSCONS_EVENT_TABLET_PRESSURE;
266                  events[nevents].value = td->p;                  events[nevents].value = td->p;
267                  nevents++;                  nevents++;
268          }          }
269          if (sc->sc_t != td->t) {          if (sc->sc_t != td->t) {
270  #ifdef WST_DEBUG  #ifdef WST_DEBUG
271                  events[nevents].type = WSCONS_EVENT_TABLET_TWIST;                  printf("t = %d\n", td->t);
272  #endif  #endif
273                    events[nevents].type = WSCONS_EVENT_TABLET_TWIST;
274                  events[nevents].value = td->t;                  events[nevents].value = td->t;
275                  nevents++;                  nevents++;
276          }          }
277          if (sc->sc_tiltX != td->tiltX) {          if (sc->sc_tiltX != td->tiltX) {
278  #ifdef WST_DEBUG  #ifdef WST_DEBUG
279                  events[nevents].type = WSCONS_EVENT_TABLET_TILTX;                  printf("tiltX = %d\n", td->tiltX);
280  #endif  #endif
281                    events[nevents].type = WSCONS_EVENT_TABLET_TILTX;
282                  events[nevents].value = td->tiltX;                  events[nevents].value = td->tiltX;
283                  nevents++;                  nevents++;
284          }          }
285          if (sc->sc_tiltY != td->tiltY) {          if (sc->sc_tiltY != td->tiltY) {
286  #ifdef WST_DEBUG  #ifdef WST_DEBUG
287                  events[nevents].type = WSCONS_EVENT_TABLET_TILTY;                  printf("tiltY = %d\n", td->tiltY);
288  #endif  #endif
289                    events[nevents].type = WSCONS_EVENT_TABLET_TILTY;
290                  events[nevents].value = td->tiltY;                  events[nevents].value = td->tiltY;
291                  nevents++;                  nevents++;
292          }          }
# Line 322  Line 326 
326                  }                  }
327    
328  #ifdef WST_DEBUG  #ifdef WST_DEBUG
329                  printf("tablet button event!");                  printf("tablet button # %d", btnno);
330  #endif  #endif
331                  events[nevents].type =                  events[nevents].type =
332                      (tb & d) ? WSCONS_EVENT_TABLET_DOWN : WSCONS_EVENT_TABLET_UP;                      (tb & d) ? WSCONS_EVENT_TABLET_DOWN : WSCONS_EVENT_TABLET_UP;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13