Mouse doesn't work well with Bochs [SOLVED]
Posted: Sun Sep 26, 2010 9:31 pm
I've written custom handler for mouse (adapted form Sanik's Mouse Driver). It works flawlessly with QEMU but doesn't work with BOCHS at all. When I move the mouse at any direction, the mouse cursor goes left+down when I use Bochs but when I use Qemu it works absolutely fine. As a part of test, I tried to decode the individual bytes sent by the mouse when handling interrupt and I found that there's problem with the 2nd and 3rd byte.The first byte tracks the left and right button well but it's also buggy. Furthermore, there's problem with mouse scaling also. That is if I set Mouse scaling to 1 for Bochs we can't even track the mouse cursor because it's too quick while Mouse scaling factor 1 works fine with Qemu.
The handler code is attached. Please have a look on it and please help. For your convinience you may just look at the handler code(there are some other functions as well which you may want to ignore). But please try to figure out where's the mistake.
The handler code is attached. Please have a look on it and please help. For your convinience you may just look at the handler code(there are some other functions as well which you may want to ignore). But please try to figure out where's the mistake.