🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #766

Re: Detecting number of mouse buttons (not INT 33,0)

#766
From: Brian Onn - OpCom Staff
Date: Tue, 17 Nov 1992 15:44
26 lines
1904 bytes
In article <BxuBy3.J4D@news.cso.uiuc.edu> cl27111@uxa.cso.uiuc.edu (Christopher  Lindsey) writes:

>	   Does anyone know of a faster way than using INT 33,0 to detect
>   the number of buttons on a mouse?  Every time that I invoke this function,
>   there is a substantial delay that I would rather not have...  
>

There is really no portable way to do this, without using the INT 33
function.  There may be another function that you can use besides 0, but
I'm not familiar with the INT 33 interface, and my Mouse Programmers Ref.
is buried under piles of other books right now.

Since you only need to do this once, I suggest that you do it at a time
in your proram while you are waiting for the user.  For example, if you
display a startup screen, do it while they are reading that, or if you
ask them for some input, do it then.

BTW, how long is the delay? (define substantial)

Brian.
--
_____________________________________________________________________
Brian Onn.                  Internet : Brian.Onn@Canada.Sun.Com
Operation Commitment,	        Uucp : uunet!sun!suncan!brian
Product Support Specialist.    Voice : (416) 477-6745.
---------------------------------------------------------------------
Technical Details
Message-ID: <BRIAN.92Nov17104430@ganglion.Canada.Sun.Com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!newscan!brian
References: <BxuBy3.J4D@news.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!newscan!brian
From: brian@ganglion.Canada.Sun.Com (Brian Onn - OpCom Staff)
Newsgroups: alt.msdos.programmer
Subject: Re: Detecting number of mouse buttons (not INT 33,0)
Message-ID: <BRIAN.92Nov17104430@ganglion.Canada.Sun.Com>
Date: 17 Nov 92 15:44:30 GMT
References: <BxuBy3.J4D@news.cso.uiuc.edu>
Sender: news@newscan.canada.sun.com
Organization: Sun Microsystems of Canada, Inc.
Lines: 26
In-Reply-To: cl27111@uxa.cso.uiuc.edu's message of Tue, 17 Nov 1992 03:20:26 GMT
Nntp-Posting-Host: ganglion