www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/01/00:48:37

Message-Id: <199711010544.SAA29901@fep1-orange.clear.net.nz>
From: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
To: <djgpp AT delorie DOT com>
Subject: Mouse polling : Giving me a headache! HELP HELP HELP (Allegro).
Date: Sun, 2 Nov 1997 02:58:30 +1300
MIME-Version: 1.0

----------
> From: Gautam N. Lad <gautam AT interlog DOT com>
> 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 <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!
> Bye!

like:

while( !mouse_b )
 {
   //do stuff here
 }

ie, it stays in the loop until a mouse button is pressed

J Love

- Raw text -


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