Mail Archives: djgpp/2000/01/06/14:34:02
hellbaron wrote:
>
> I've been working on a big graphix project all week, everything is
> going ok, exept for this mouse function. The thing is, I would like to
> save some valuable time when executing this function by eliminating the
> delay(50), but I just cant seem to be able to substitute it with
> anything else, I tried with a simple if, but it just doesnt work..
> Please help me out!!, any feedback will be greatly apriciated, thanx in
> advance to anyone who replies to this message, and here is the function:
I've had once similar problem - the program catches mouse click,
but on the next mouse query it gets the same click. AFAIK the reason
is that program executes faster then user releases mouse button.
So try to replace the delay() with do-nothing loop after mouse query like
while (!mouse_button_released());
Laurynas Biveinis
- Raw text -