Date: Thu, 8 Apr 1999 12:01:04 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Daniel Eaton cc: djgpp AT delorie DOT com Subject: Re: Mouse Problems In-Reply-To: <2yzO2.435$9i7.33384@newsgate.direct.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.