File mouse-wheel-roll.patch of Package xen
Index: xen-3.3.1-testing/tools/ioemu-remote/hw/usb-hid.c
===================================================================
--- xen-3.3.1-testing.orig/tools/ioemu-remote/hw/usb-hid.c
+++ xen-3.3.1-testing/tools/ioemu-remote/hw/usb-hid.c
@@ -551,6 +551,8 @@ static int usb_pointer_poll(USBHIDState
e = &s->queue[s->head];
dz = int_clamp(e->dz, -127, 127);
+ if(dz)
+ e->dz = 0;
if (s->xyrel) {
dx = int_clamp(e->xdx, -127, 127);
@@ -593,7 +595,6 @@ static int usb_pointer_poll(USBHIDState
case USB_TABLET:
/* Appears we have to invert the wheel direction */
- dz = 0 - dz;
buf[0] = b;
buf[1] = dx & 0xff;