[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?)
From: |
Fred |
Subject: |
Re: [Qemu-devel] mouse freeze (related to new wheel mouse support?) |
Date: |
Thu, 27 Jan 2005 16:38:34 -0500 (EST) |
On Thu, 27 Jan 2005, Volker Ruppert wrote:
> I guess Windows 2000 enables the wheel mouse feature and the wheel is usable
> and after rebooting the device ID is wrong. I think the mouse type is
> affected by the mouse reset function (0xff). Please add this line in pckbd.c
> in the AUX_RESET section and let us know what happens:
>
> s->mouse_type = 0;
...
I just tried this (patch attached below if you like it that way), and
tested it in Win2k with the two reboot scenarios I mentioned, as well as
by changing the graphics mode repeatedly. The mouse works beautifully.
Thanks!
--- ./hw/pckbd.c.mousereset 2005-01-27 16:34:54.768465000 -0500
+++ ./hw/pckbd.c 2005-01-27 16:35:41.245835000 -0500
@@ -539,6 +539,7 @@
s->mouse_sample_rate = 100;
s->mouse_resolution = 2;
s->mouse_status = 0;
+ s->mouse_type = 0;
kbd_queue(s, AUX_ACK, 1);
kbd_queue(s, 0xaa, 1);
kbd_queue(s, s->mouse_type, 1);