]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qemu/files/qemu-usb-wacom-pressure.patch
updated to qemu 0.82 from oe.dev to familiar with patches to enable building with...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qemu / files / qemu-usb-wacom-pressure.patch
1 --- qemu-cvs-ts-orig/hw/usb-wacom.c     2006-09-29 17:27:43.000000000 +0000
2 +++ qemu-cvs-ts/hw/usb-wacom.c  2006-09-29 17:48:13.000000000 +0000
3 @@ -203,16 +203,20 @@ static int usb_wacom_poll(USBWacomState 
4          return 0;
5  
6      buf[0] = s->mode;
7 -    buf[1] = s->x & 0xff;
8 -    buf[2] = s->x >> 8;
9 -    buf[3] = s->y & 0xff;
10 -    buf[4] = s->y >> 8;
11      if (b) {
12 +        buf[1] = s->x & 0xff;
13 +        buf[2] = s->x >> 8;
14 +        buf[3] = s->y & 0xff;
15 +        buf[4] = s->y >> 8;
16          buf[5] = 0x40;
17          buf[6] = 0;
18      } else {
19 +        buf[1] = 0;
20 +        buf[2] = 0;
21 +        buf[3] = 0;
22 +        buf[4] = 0;
23          buf[5] = 0x00;
24 -        buf[6] = (unsigned char) -120;
25 +        buf[6] = (unsigned char) -127;
26      }
27  
28      return 7;