Article View: comp.sys.amiga.tech
Article #11215Re: Double click detection?
From: Markus Schmidt
Date: Thu, 26 Jan 1989 17:07
Date: Thu, 26 Jan 1989 17:07
43 lines
1683 bytes
1683 bytes
Hi!
Four doubleclicks I use this logic:
while (1) {
imsg= GetMsg ( ...
if (imsg->Class= /* endevent */)
break;
if (imsg->Class==SELECTDOWN)
{
static Seconds= 0,
Micros= 0;
if ((Seconds!=0 || Micros!=0) &&
DoubleClick(Seconds,Micros,
imsg->Seconds, imsg->Micros)) {
/* Your Stuff ... */
Seconds= Micros= 0;
}
else {
Seconds= imsg->Seconds; Micros= imsg->Micros;
}
}
}
Please notice that ReplyMsg is not handled. I just hacked that down
online.
.-----------------------------------------------------------------.
| shimoda@rmi.de `---' The last remaining adventure |
| shimoda@gopnbg.UUCP |O o| since there are no more tigers: |
| ==Y== Doublebuffered async. I/O _ |
|----------------------- `U' ------------------------------ _ // |
| Good terminalpackages begin with A: AmigaCall, A-Ta.. \// |
`-----------------------------------------------------------------'
Technical Details
Message-ID:
<484@infohh.rmi.de>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!unido!rmi!infoac!infohh!shimodaReferences:
<11640007@hpfcdc.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!unido!rmi!infoac!infohh!shimoda From: shimoda@infohh.rmi.de (Markus Schmidt) Newsgroups: comp.sys.amiga.tech Subject: Re: Double click detection? Message-ID: <484@infohh.rmi.de> Date: 26 Jan 89 17:07:07 GMT References: <11640007@hpfcdc.HP.COM> Reply-To: shimoda@infohh.rmi.de (Markus Schmidt) Organization: RMI Net * Aachen/Hamburg/Flensburg * W.Germany Lines: 43