[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal S

From: Lonnie Mendez
Subject: Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)
Date: Sun, 09 Apr 2006 13:41:57 -0500
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Brad Campbell wrote:

Leonardo E. Reiter wrote:

This is by no means a complete patch (do not apply it as it will break usb-hid.c), but it adjusts the report descriptor in usb-hid.c to provide position in 16-bits, and in absolute coordinates:

Index: usb-hid.c
RCS file: /cvsroot/qemu/qemu/hw/usb-hid.c,v
retrieving revision 1.1
diff -a -u -r1.1 usb-hid.c
--- usb-hid.c   5 Nov 2005 16:57:08 -0000       1.1
+++ usb-hid.c   8 Apr 2006 20:56:02 -0000
@@ -117,7 +117,7 @@
     0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 0x75, 0x01,
     0x81, 0x02, 0x95, 0x01, 0x75, 0x05, 0x81, 0x01,
     0x05, 0x01, 0x09, 0x30, 0x09, 0x31, 0x15, 0x81,
-    0x25, 0x7F, 0x75, 0x08, 0x95, 0x02, 0x81, 0x06,
+    0x25, 0x7F, 0x75, 0x16, 0x95, 0x02, 0x81, 0x02,
     0xC0, 0xC0,

According to:

I can't get the existing usb-hid mouse to work in win2k. It sees a device but it marks it as non-functional. After wrapping my head around this descriptor I can't really seem to reconcile what is here with the data we are passing in usb_mouse_poll()

I'm sure it works with a linux guest.. has anyone had -usb -usbdevice mouse working under windows ?

This descriptor seems slightly whacky compared to most mouse examples I've seen floating about on the net.

  Please see the patch posted yesterday to this mailing list:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]