Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!srhqla!quad1!few From: few@quad1.quad.com (Frank Whaley) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: Using a mouse with Turbo C Message-ID: <5828@gouda.quad.com> Date: 22 Feb 90 20:34:00 GMT References: <1264@ac.dal.ca> <16129@orstcs.CS.ORST.EDU> Distribution: na Organization: Quadratron Systems, Westlake Village, CA Lines: 34 I've seen a number of responses to this, so let me post an offer. I have a 462 line (7355 bytes) 'shar' file that demonstrates the use of the Micros*ft mouse driver from Turbo C, which I'll mail to anyone that sends me a request. From the header: ----- Attached is a 'shar' file containing 6 files (described below) which demonstrate how I use the Microsoft mouse driver from Turbo C. mouse.h Contains the declarations of data types and the mouse functions provided. mouse.c The actual mouse functions -- one for each of the 'public' routines provided by the latest version *I* have of the Micros*ft mouse driver. m1.c A demonstration of installing a Turbo C function as a 'mouse trap' handler. This program requires an assembler (TASM or MASM). m2.c A much simpler demonstration of polling the mouse to provide remarkably similar output. m3.c Another similar demo which demonstrates how to hide the mouse cursor, but show it whenever the mouse is moved or a button is pressed. mt.c A demonstration of tracking the mouse in graphics mode (EGA 640x350x16) and plotting dots when a button is pressed. ----- -- Frank Whaley Senior Development Engineer Quadratron Systems Incorporated few@quad1.quad.com uunet!ccicpg!quad1!few Water separates the people of the world; Wine unites them.