mouse reset fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1245 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-01-27 22:32:51 +00:00
parent e3db7226b4
commit f34c9d6f10

View 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);