www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/08/07:10:00

Date: Thu, 8 Apr 1999 12:01:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Daniel Eaton <deaton AT hockeytown DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Mouse Problems
In-Reply-To: <2yzO2.435$9i7.33384@newsgate.direct.ca>
Message-ID: <Pine.SUN.3.91.990408120038.29868e-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019