If I remember correctly, the mouse comes in on Int 15h (if PS/2) or through the COM ports. So if CPU time is an issue, you may have to roll your own human interface device subsystem (HID) and handle the mouse (and keyboard) from that vantage point.
Calling a real mode mouse driver in protected mode is going to eat CPU time just on the context switch, and if you're polling for position, that's a lot of switching going on to update a cursor. I think it definitely makes more sense to roll your own protected mode version of the driver to minimize the context switches. -Tony ----- Original Message ----- From: "Bart Oldeman" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, June 13, 2007 1:42 PM Subject: Re: [Freedos-devel] Calling a software interrupt from hardwareinterrupt > On 6/13/07, Ladislav Lacina <[EMAIL PROTECTED]> wrote: >> Thank you, I'll try these possibilities. Support for 4th and 5th mouse >> button might be useful for someone but I don't have such mouse and don't >> remember if I have ever seen it . >> But very interresting would be some mouse protect mode interface. >> Something >> similar like VESA VBE protect mode interface is. Because moving mouse >> eats >> much CPU power in protected mode. > > Did you try to register a mouse interrupt subroutine (int33/ax=c in > combination with int31/ax=303)? > > The 4th and 5th button often refer to scroll-up and scroll-down of the > mouse wheel. > > Bart > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Freedos-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freedos-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
