summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/files/qemu-usb-wacom-buttons.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/qemu/files/qemu-usb-wacom-buttons.patch')
-rw-r--r--meta/packages/qemu/files/qemu-usb-wacom-buttons.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/qemu/files/qemu-usb-wacom-buttons.patch b/meta/packages/qemu/files/qemu-usb-wacom-buttons.patch
new file mode 100644
index 0000000000..ee24c15780
--- /dev/null
+++ b/meta/packages/qemu/files/qemu-usb-wacom-buttons.patch
@@ -0,0 +1,23 @@
1--- qemu-cvs-ts-orig/hw/usb-wacom.c 2006-09-29 22:53:06.000000000 +0000
2+++ qemu-cvs-ts/hw/usb-wacom.c 2006-09-29 22:44:14.000000000 +0000
3@@ -203,19 +203,18 @@ static int usb_wacom_poll(USBWacomState
4 return 0;
5
6 buf[0] = s->mode;
7+ buf[5] = 0x00;
8 if (b) {
9 buf[1] = s->x & 0xff;
10 buf[2] = s->x >> 8;
11 buf[3] = s->y & 0xff;
12 buf[4] = s->y >> 8;
13- buf[5] = 0x40;
14 buf[6] = 0;
15 } else {
16 buf[1] = 0;
17 buf[2] = 0;
18 buf[3] = 0;
19 buf[4] = 0;
20- buf[5] = 0x00;
21 buf[6] = (unsigned char) -127;
22 }
23