delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/09/06:39:19

Newsgroups: comp.os.msdos.djgpp
Date: Tue, 9 Jun 1998 12:34:49 +0200 (MET DST)
From: Alex <alex AT gamf DOT hu>
Reply-To: Alex <alex AT gamf DOT hu>
To: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>, djgpp AT delorie DOT com
Subject: Re: Mouse problem under Win95
In-Reply-To: <SuBjBAA0SDe1Ewsl@talula.demon.co.uk>
Message-ID: <Pine.GSO.3.96.980609122422.17338B-100000@Gandalf.gamf.hu>
References: <Pine DOT GSO DOT 3 DOT 96 DOT 980605095932 DOT 9001C-100000 AT Gandalf DOT gamf DOT hu> <SuBjBAA0SDe1Ewsl AT talula DOT demon DOT co DOT uk>
MIME-Version: 1.0

On Fri, 5 Jun 1998, Shawn Hargreaves wrote:

>Alex writes:
>>But, when I try it to run under Win95, it use the mouse like the small 3
>>bits missing ( as the character modes ).
>
>Many mouse drivers will do that, and not only under win95. In fact, I
>think you will find that the majority of machines are unable to display
>a mouse pointer in SVGA modes, and can only move the pointer in 4 or 8
>pixel units.

In the description of the mouse driver you can find some  useful settings,
you can set the X and the Y resolution ( I did it in my program), thus you
you can use the mouse on any vido modes up to 32768x32768 (?).

>As far as the pointer display is concerned, you simply need to write
>your own graphics code to draw the image. To get smooth movement, you

Yes, the mouse pointer is drawed by my program ,not the mouse service.

>can use int 0x33 calls to increase the mouse range and speed by a factor
>of 8, and then divide the resulting coordinates back down to get a real
>position, but this will fail when using Logitech drivers (they don't
>support the speed adjustment call, so the cursor will move very slowly).
>Alternatively you can just use int 0x33 functions to read a raw mickey
>motion value, and write your own code to convert that into a final
>position. That's a bit more complicated, but it's the only totally
>reliably method that I have found.

I will try this.

>The Allegro mouse.c file supports both the mickey input and increased
>range/speed methods, so it might be a useful place to look for some
>ideas.

Can you send the mouse.c from the Allegro, because I cannot download the
full package.

Thanks in advice,

 Alex.


- Raw text -


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