From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: 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 Content-type: text/plain; charset=us-ascii Precedence: bulk >Hi, > David Jenkins 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