delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/14/08:50:34

Message-ID: <E1FF8239A075D311AF7200A0C9D60AE30F9AB6@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <SHargreaves AT acclaimstudios DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: How to change mouse Speed
Date: Thu, 14 Oct 1999 10:16:44 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

hank_heng writes:
> Is there anyway to change the mouse speed in DJGPP ? I saw 
> some program does this but I don't really know how to write 
> the code to do it.

Call int 0x33 with ax=15, cx=xspeed, dx=yspeed. Any decent mouse
driver reference (for example the Ralph Brown interrupt list) will
document this call.

But be warned, some mouse drivers (in particular Logitech ones)
don't implement the speed adjustment functions. Since I was
unable to find any way to detect whether the current driver
supports it or not, if you use this, you have to resign yourself
to the fact that your code won't work properly on all computers.

One solution is to ditch the DOS driver altogether and write your
own tracking code, but that is quite a bit of work: see the Allegro
sources if you want to know how to do this.

> And, is there posible to change the look of the mouse pointer 
> instead using the normal BLOCK type into some other ASCII 
> character ?

There's an interrupt call to do this: I forget the details (sorry
I don't have a reference here to check) but Ralph Brown will
cover it.


	Shawn Hargreaves.

- Raw text -


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