delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/12/17:02:14

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Mouse in SVGA
Date: Sun, 12 Apr 1998 15:02:57 +0100
Organization: None
Message-ID: <mxKe2CARmMM1EwLb@talula.demon.co.uk>
References: <352FD41A DOT AAF992C5 AT earthlink DOT net>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Steven S. Falls writes:
>    Is there a way to make the mouse move smothly in SVGA? It seems to
>move at the smallest 3x3 pixel chuncks.

The easy bodge is to use int 0x33 functions to change the mouse driver
settings. If you scale up both the range and speed by a factor of 8, and
then divide the resulting coordinates back down by 8 when displaying the
cursor or processing the input, you will get smooth movement with just
about any driver. The only problem is with Logitech mice, because their
driver doesn't support the speed adjustment function, and hence the
mouse will move very slowly :-)

A better fix is to ditch the int 0x33 position tracking code altogether,
and just read mickey counters from it. For an example of this, see the
Allegro mouse.c file (it actually implements both methods, and lets the
user select either one with a config variable).


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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