[comp.os.msdos.programmer] Mouse Programming

sfd@earthquake.Berkeley.EDU (Scott Drellishak) (10/23/90)

Does anyone know where I can get a good description of the various mouse
interrupt services?  I have the interrupt list, and that's pretty good, but
I need more detailed info on a couple of the services.  Anonymous ftp is
preferable.

For the curious, I'm writing a "cut-and-paste" program for text mode, a la
X Windows and the "M-word computer".  It mostly works, but I need to know

	1) Is there anyway to prevent the cursor from moving when it's
	   turned off for updating?  If the user moves the mouse too fast,
	   a bunch of reverse-video garbage gets left on the screen.

	2) Is there any way to know when the screen is going to scroll?  The
	   text mouse cursor leaves more reverse-video garbage around
	   when the screen scrolls.  I can turn it off when the ROM video
	   "scroll up" or "scroll down" services are called, but many
	   programs (and ANSI.SYS) don't call this service.

Please respond by mail.  I'll post a summary in alt.msdos.programmer and
comp.sys.ibm.pc.misc.  Keep an eye out for this program...I suspect a lot
of people have wanted to be able to cut-and-paste.

Scott, sfd@ocf.berkeley.edu

ede879g@monu6.cc.monash.edu.au (Robert D. Nicholson) (04/16/91)

I know this is probably faq but I have got faq at my site.

I need some information on mouse programming in graphics mode
in C.

Can people recommend any texts and or articles worth considering.

bstrong@sleepy.bmd.trw.com (05/14/91)

I have a Mitsubishi mouse and need to do some mouse programming involving
both text and graphics mode menus.  Is the "MicroSoft Moust Programming
Reference Manual" strictly for the MicroSoft Mouse and, if so, who makes
a manual and software for "generic" mouse programming that would include
libraries for common mouse calls?  Any help is much appreciated.

------------------------------------------------------------------
Bryan Strong     bstrong@oz.bmd.trw.com

danr@bcsfse.boeing.com (Dan Richardson) (05/16/91)

Bryan,
  If I may, do you know if the Mitsu mouse is Microsoft compatible? If it is,
then you may be able to use some routines I wrote years ago that have worked
quite well through all the weird environments I've used them in. They're written
in Borland C (downward compatible with Turbo C as I wrote them in 1986) and use
the Microsoft Mouse driver (MOUSE.SYS) for the workload. They consist primarily of
int86() calls and (if I remember correctly) they are pretty well commented, if I
do say so myself :-). (There's no conceit in my family, I've got it all!)
  If you're interested, I can send you the C source file if you send me a HD 3.5"
diskette formatted with DOS 4.01 or earlier. E-mail me if you'd like a copy and
we can work out the details. No charge for this service of course; I like to
think that when I get in a bind, the good folks out there are more than willing
to share the intellectual wealth...a kind of mental "hand up" so to speak.
  Oh, one word about my mouse library: I haven't updated it since version 6.24
of Microsoft's driver, so I may not have some of the more "exotic" interrupt
sub-functions in my code. Darn, I keep meaning to send off to Microsoft for the
latest driver. Making a mental note of that....

Best of luck!

---------------------------------------------------------------------------------
Dan Richardson                 | "If there's anything more important than my ego 
Analysts International Corp.   |  around here, I want it caught and shot now!"
for Boeing Computer Services   |                 --Zaphod Beeblebrox
---------------------------------------------------------------------------------
"My opinions are not necessarily those of my clients or my employers."
=================================================================================