From: Mirko Geffken Newsgroups: comp.lang.c++,comp.lang.c,comp.os.msdos.djgpp,comp.os.msdos.programmer,alt.msdos.programmer Subject: Re: Detecting mouse double click. Date: Mon, 30 Sep 1996 18:59:30 +0200 Organization: Customer of EUnet Germany; Info: info AT Germany DOT EU DOT net Lines: 23 Message-ID: <324FFC72.6965@seitz.de> References: <52o5l3$ft1 AT lion DOT cs DOT latrobe DOT edu DOT au> NNTP-Posting-Host: pcmge.seitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Gregary J Boyles wrote: > When a program containing the above loop is run and the mouse button is > double clicked the program sometimes hangs. I can easily show that it is > not stuck in any of my loops. Hello, I would be surprised if is possible to get double klicks with this routine if done by human beeings, because you fetch the button press event and afterwards wait for a button press again. There is no waiting for a button release in between. If the double klick isn't done within a few [nm]s the routine will return a double klick on every mouse klick. (Which of course is no reason for hang ups) > > Does polling the mouse continually in quick succession cause any known > problems with mouse drivers? I do continuous polling on my mouse driver and it is no problem for me, but it could be driver dependend. Hope this helps Mirko