Mail Archives: djgpp/1999/04/08/07:10:00
On Tue, 6 Apr 1999, Daniel Eaton wrote:
> I can initialize no problem, but when I poll for mouse moves
> delta x and y will never be negative and therefore the mouse is only able to
> move right and down.
Are you using int86 to poll the mouse? If so, change your code to use
__dpmi_int instead. int86 has problems with the 16- vs 32-bitness of
the registers, and the resulting effects can drive you crazy ;-).
> Also, __dpmi_int kicks me out of protected mode for a
> few moments to interrupt 0x33 (in my case) and lags the program a bit, does
> it not?
The slow-down from the mode switches should not be too painful, unless
you poll the mouse too frequently.
> Is there any better way to play with the mouse driver in protected
> mode?
Not unless you have a protected-mode mouse driver, AFAIK.
- Raw text -