]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
usb-hid.c: fix usb mouse wheel
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 11 Dec 2008 18:04:47 +0000 (18:04 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 12 Feb 2009 11:14:11 +0000 (11:14 +0000)
commit5b55ab9960475e669aeaa626b48f6cebcbf2bdfe
tree5d4d66be8440c9fdf284e4765e94b6ed17a4c141
parentc3c258c1794231c9dba49b80128c53e018640332
usb-hid.c: fix usb mouse wheel

This patch fixes the usb mouse wheel of usb devices.

[ Previously, tablets would fail to subtract dz from e->dz thus
  producing an infinite stream of reports; also the wheel direction
  inversions had been multipled by merge damage resulting in the wrong
  number of inversions for mice. -iwj ]

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit 70543c9952d2ff9f6fddb0a0948218e8e6f2dacb)
hw/usb-hid.c