[comp.sys.ibm.pc] Mouse Libraries for Turbo C

c60c-4ab@web-4b.berkeley.edu (Scott Drellishak) (09/12/89)

I was wondering if anyone knows of a good, usable, public domain mouse
library for Turbo C.  I have a Logitech mouse, and haven't been able to
find anything besides Turbo Pascal routines.  This, of course, is un-
acceptable.  Is there anything on Simtel20 that you would recommend.
Please reply to this account by mail.


( Scott Drellishak
(
(   "Hey there!  Hi there!  Ho there! [smack] [smack] [smack]"

wyoung@ksuvax1.cis.ksu.edu (William J. Young) (09/22/89)

In article Scott Drellishak writes:
>
>I was wondering if anyone knows of a good, usable, public domain mouse
>library for Turbo C.  I have a Logitech mouse, and haven't been able to
>find anything besides Turbo Pascal routines.  This, of course, is un-
>acceptable.  Is there anything on Simtel20 that you would recommend.
>Please reply to this account by mail.


If you have the original Logitech distribution disk, there are TPascal
routines there that allow you to read the mouse movements.  The procedures
and functions in here are very simple.  They take a couple of parameters
(I think the max is around 4 or 5), stuff those parms into registers, and
execute the interrupts to MOUSE.SYS.  Looking at them quickly (and not 
having done much in TC in the last two years) it looks like it would be an
easy task to translate them from TP to TC.  I do remember that TC has much
the same capability as TP as far as DOS interrupt calls.
The documentation in the file is sketchy at best, but it shouldn't take too
long to figure out what's going on.  And all the routines are basically
the same.  
WARNING:  A couple of the routines disagree in what the doc says
and what the code does.  It is my experience that the doc is right and you
should change the code to match (what parms are in/out and registers to
put parms into - not a big deal; just one or two of the routines and I
don't remember which one(s)).


--
----------------------------
Bill Young 1408 Cambridge Place, Apt 19 Manhattan, KS  66502  (913) 537-6840
Internet:  wyoung@ksuvax1.cis.ksu.edu, wyoung%ksuvax1@harris.cis.ksu.edu
BITNET:    wyoung@ksuvax1.bitnet, wyoung%ksuvax1.bitnet@cunyvm.cuny.edu