🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Christopher Lindsey Tue, 17 Nov 1992 03:20
Detecting number of mouse buttons (not INT 33,0)
#760
Author: Christopher Lindsey
Date: Tue, 17 Nov 1992 03:20
7 lines
757 bytes
	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...  

Ideas?  Thanks...

Christopher Lindsey -- Dept. of Landscape Architecture, Univ. of Illinois
Re: Detecting number of mouse buttons (not INT 33,0)
#766
Author: 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.
---------------------------------------------------------------------
Re: Detecting number of mouse buttons (not INT 33,0)
#773
Author: Christopher Lindsey
Date: Wed, 18 Nov 1992 04:34
12 lines
1167 bytes
	The problem that I am having is that I am linking together several
.OBJ files, and I don't want to declare a variable as global (for reasons
too detailed)...  The delay is only about one second, but that interrupt
also resets the mouse, which I don't want to do...

	Many programs have their own drivers built-in; how do they determine
the number of buttons?  I guess what I'm looking for is information that
is related to ports, etc.  i.e. send a value to the serial port+1, look at
top three bits, whatever...

Christopher Lindsey -- Dept. of Landscape Architecture, Univ. of Illinois
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads