Mail Archives: djgpp/1997/10/31/13:05:49
>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!
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
- Raw text -