mouse reset fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 27 Jan 2005 22:32:51 +0000 (22:32 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 27 Jan 2005 22:32:51 +0000 (22:32 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1245 c046a42c-6fe2-441c-8c8c-71466251a162

hw/pckbd.c

index e38edee..be559eb 100644 (file)
@@ -539,6 +539,7 @@ static void kbd_write_mouse(KBDState *s, int val)
             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);