Path: 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 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.. \// | `-----------------------------------------------------------------'