🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1379

Re: Using a mouse with Turbo C

#1379
From: Roger Egeberg
Date: Wed, 21 Feb 1990 19:29
31 lines
2083 bytes
In article <1264@ac.dal.ca> botterry@ac.dal.ca writes:
>I am interested in using a mouse systems mouse (Genius Mouse with Mouse.com)
>for some i/o on my Turbo-C programmers.  Do I have to resort to Assembler in
>order to use the mouse or are there undocumented (or documented that I can't
>find documented) Turbo-C commands?
>Thanks in advance
>
>Terry Grignon

There's nothing "built-in" in Turbo C to support the mouse.  It seems that 
most of what I've seen is written for a Microsoft or Microsoft-compatible
mouse.

There was a two part article in the May/June 1988 and July/August 1988 issues
of Turbo Technix (now defunct) that explained how to use a Microsoft compatible
mouse with Turbo C.  Basically you have to put a function code into the AX
register and execute interrupt 33H.  Even if you can't find a copy of the
articles, you may be able to find the code from Turbo Technix.  I've seen it
on BBS's.

Another way is to buy a library that has support for a mouse.  I've used a
library called CXL (C Extended Function Library) by Mike Smedly.  It has
mouse support (as well as a lot of other stuff).  I found an evaluation
version on a local BBS that included a demo program and a library for the
Turbo C small memory model.  Registration is $35 (I think) and then you get
full source code and libraries for all memory models.  He also supports 
Microsoft C and Zortech C++.  I've been very happy with CXL.
-- 
Roger Egeberg
NDSU Extension Service              BITNET:    nu062423@ndsuvm1.BITNET
North Dakota State University       Internet:  egeberg@plains.NoDak.edu
Technical Details
Message-ID: <3515@plains.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!plains!egeberg
References: <1264@ac.dal.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!plains!egeberg
From: egeberg@plains.UUCP (Roger Egeberg)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Using a mouse with Turbo C
Keywords: mouse genius Turbo C
Message-ID: <3515@plains.UUCP>
Date: 21 Feb 90 19:29:43 GMT
References: <1264@ac.dal.ca>
Reply-To: egeberg@plains.NoDak.edu (Roger Egeberg)
Followup-To: comp.sys.ibm.pc.programmer
Distribution: na
Organization: North Dakota State University, Fargo
Lines: 31