🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4587

Re: Microsoft mouse.sys and Super VGA graphics

#4587
From: Joe Huffman
Date: Thu, 07 Feb 1991 23:24
43 lines
2506 bytes
colburn@handel.cs.colostate.edu (Alex Colburn) writes:

>	I have an interesting problem when I'm in a super vga mode
>and am trying to use my mouse.  The mouse will not appear or track
>all of the screen.  I'm putting my machine into a 640x480x256 mode

The problem is that the mouse driver (mouse.sys or mouse.com usually)
does not recognize all of the different graphics modes on all the 
graphics cards.  If it doesn't know about the graphics mode then it can't
draw a cursor.  Most mouse drivers only know about standard CGA, EGA, and
VGA modes.  And some (most?) are even unaware of some of those modes --
like VGA mode 0x13.

It was for this reason that I finally (about a year ago) put mouse support
directly in the graphics library for the Zortech compiler.  The graphics
package being aware of Hercules, SVGA, 8514A, etc can draw the cursor and
avoid dependence on the driver installed by the user.  It still uses the
standard Microsoft driver but only for generating the event interrupts and
reporting the button status and mouse position -- a minimal subset that all
mouse drivers support.

If you are writing your own graphics routines (rather than buying ours) then
use mouse function 12 to have the mouse driver call your routine to draw the
cursor.  Be sure to take care of reentrancy problems (what if you are
in the middle of a another graphics operation and the mouse is moved?) and 
cleaning up (tell the driver not to call your service routine) for all
exit pathes (normal exit, asserts, Ctrl C, Ctrl Break, etc).

Source code for my library is available (~$200.00) from Zortech if you are
determined to do it your way and need some additional help.

---
Zortech mailing list: send email to 'ztc-list-request@uunet.uu.net' with:
Add: your-user-name@your-machine-name
In the body of the message.
---
Send Zortech bug reports to 'zortech-bugs@proto.com'
Send requests for educational discounts to 'zortech-ed@proto.com'
---
Zortech is my major source of income.  Statements about them or their 
competitors cannot be totally without bias.  
-- 
joe@proto.com
Technical Details
Message-ID: <1991Feb07.232442.5190@proto.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!proto!joe
References: <12610@ccncsu.ColoState.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!proto!joe
From: joe@proto.com (Joe Huffman)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Microsoft mouse.sys and Super VGA graphics
Message-ID: <1991Feb07.232442.5190@proto.com>
Date: 7 Feb 91 23:24:42 GMT
References: <12610@ccncsu.ColoState.EDU>
Organization: Prototronics @ Sandpoint, Idaho
Lines: 43