delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/31/13:05:49

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C1256541.005EAEF2.00@vega.ads.it>
Date: Fri, 31 Oct 1997 18:17:12 +0100
Subject: Re: Mouse polling : Giving me a headache! HELP HELP HELP (Allegro
).
Mime-Version: 1.0




>Hi,
>   David Jenkins <me AT jenkinsdavid DOT demon DOT co DOT uk> wrote:
>[SNIP]
>>     while (mouse_b & 1) { } // Program sticks in this loop till the
>>mouse button is released.
>
>Oh God, not again! (No offence).
>I stated in my message that I DON'T WANT TO POLL WHILE MOUSE IS
>DOWN method.  I want to stick in the loop until mouse is pressed.
>
>Hope you understand, what I mean!
I'm afraid I didn't undertand: you want the loop begin when the mouse
is clicked (ie: pressed and then released) don't you? Then it is necessary
a loop waiting for the button release after the button is pressed,
otherwise
it is not possible to distinguish between "first" and "second" button press
because the programs runs faster then your fingers!

ciao
  Giacomo




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019