🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #14086

Re: Double Click

#14086
From: David C. Navas
Date: Wed, 07 Mar 1990 22:40
17 lines
1171 bytes
In article <79yO02zd8fMp01@amdahl.uts.amdahl.com> dwl10@uts.amdahl.com (Dave Lowrey) writes:
>I can find no "standard" coding technique to handle "double clicking"
>of a gadget.

Funny, I always used DoubleClick()...

IsDouble = DoubleClick(StartSecs, StartMicros, CurrentSecs, CurrentMicros)
A0			D0	   D1		D2		D3

When you get your first gadget click, save the secs and micros portion of the
intuition message, and then when you get your second click, call this function
appropriately...

Hope this helps.

David Navas                                   navas@cory.berkeley.edu
"Think you can, think you can't -- either way it's true."  Henry Ford
Technical Details
Message-ID: <22764@pasteur.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!navas
References: <79yO02zd8fMp01@amdahl.uts.amdahl.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!navas
From: navas@cory.Berkeley.EDU (David C. Navas)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Double Click
Message-ID: <22764@pasteur.Berkeley.EDU>
Date: 7 Mar 90 22:40:58 GMT
References: <79yO02zd8fMp01@amdahl.uts.amdahl.com>
Sender: news@pasteur.Berkeley.EDU
Reply-To: navas@cory.Berkeley.EDU.UUCP (David C. Navas)
Organization: University of California, Berkeley
Lines: 17