Newsgroups: comp.os.msdos.djgpp Date: Tue, 9 Jun 1998 12:34:49 +0200 (MET DST) From: Alex Reply-To: Alex To: Shawn Hargreaves , djgpp AT delorie DOT com Subject: Re: Mouse problem under Win95 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.