Message-Id: <199711010544.SAA29901@fep1-orange.clear.net.nz> From: "Jamie Love" To: Subject: Mouse polling : Giving me a headache! HELP HELP HELP (Allegro). Date: Sun, 2 Nov 1997 02:58:30 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Precedence: bulk ---------- > From: Gautam N. Lad > To: djgpp AT delorie DOT com > Subject: Re: Mouse polling : Giving me a headache! HELP HELP HELP (Allegro). > Date: Thursday, October 30, 1997 03:15 > > 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! > Bye! like: while( !mouse_b ) { //do stuff here } ie, it stays in the loop until a mouse button is pressed J Love