From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Mouse polling : Giving me a headache! HELP HELP HELP (Allegro). Date: 29 Oct 1997 18:24:46 GMT Organization: Oxford University, England Lines: 22 Message-ID: <637v1e$753$1@news.ox.ac.uk> References: <635haf$a3j$2 AT news DOT interlog DOT com> <637fsr$b8v$1 AT news DOT interlog DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 29 Oct 97 14:15:05 GMT in comp.os.msdos.djgpp Gautam N. Lad (gautam AT interlog DOT com) wrote: : 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. No, what David was saying was that you need to wait for the button to be released after it has been pressed. Then you track the mouse, draw your circles, etc, until it is pressed again, at which stage you quit. At present your code picks up the mouse button being pressed, starts drawing circles, and then quits immediately because the button is still being pressed. -- Regards, george DOT foot AT merton DOT oxford DOT ac DOT uk