Mail Archives: djgpp/1997/10/29/22:01:19
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 <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.
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
- Raw text -