Mail Archives: djgpp/1999/10/14/08:50:34
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 -