Mail Archives: djgpp/1998/04/12/17:02:14
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 -