Brad Campbell wrote:
Brad Campbell wrote:
The wheel works in SDL although there is currently a bug where it
steps by 2 instead of 1.. so it's ok for scrolling, but scrolling
through a selection box causes it to skip every second selection.
I've not tested the wheel with the vnc patch yet. I'll get to those
tonight..
Wheel works in VNC unmodified :) (yay)
I've been playing some more on the Win98 calibration issue and I'll keep
looking at that, but for now it' still a no-go. And the 2 step wheel
thing still needs fixing.
Fixed the descriptor.. Now works perfectly in Win98, 2k and XP :)
--
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
diff -ur qemu-clean/hw/usb-hid.c qemu/hw/usb-hid.c
--- qemu-clean/hw/usb-hid.c 2006-04-10 23:39:14.000000000 +0400
+++ qemu/hw/usb-hid.c 2006-04-10 23:41:39.000000000 +0400
@@ -161,7 +161,7 @@
0x00, /* u8 country_code */
0x01, /* u8 num_descriptors */
0x22, /* u8 type; Report */
- 65, 0, /* u16 len */
+ 70, 0, /* u16 len */
/* one endpoint (status change endpoint) */
0x07, /* u8 ep_bLength; */
@@ -203,10 +203,13 @@
0x09, 0x30, /* Usage X */
0x09, 0x31, /* Usage Y */
0x15, 0x00, /* Logical Minimum 0 */
- 0x27, 0xFF, 0xFF, 0x00, 0x00, /* Logical Maximum 0xffff */
+ 0x26, 0xFF, 0x7F, /* Logical Maximum 0x7fff */
+ 0x35, 0x00, /* Physical Minimum 0 */
+ 0x46, 0xFF, 0x7F, /* Physical Maximum 0x7fff */
0x75, 0x10, /* Report Size 16 */
0x95, 0x02, /* Report Count 2 */
0x81, 0x02, /* Input (Data, Var, Abs) */
+ 0x05, 0x01, /* Usage Page Generic Desktop */
0x09, 0x38, /* Usage Wheel */
0x15, 0x81, /* Logical Minimum -127 */
0x25, 0x7F, /* Logical Maximum 127 */
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel