[SDL] Mouse Input + Delay problem
Ankush Thakur
ankush.gamedev at gmail.com
Mon Apr 7 09:39:59 PDT 2008
Hi,
I am making a small game.
The requirement is that an image will be displayed for some time (say 1000
ms), and the user has to click on it.
After the click, we must check for click coordinates.
the general structure I follows goes like this:
draw();
checkForInput();
delay for 1000 ms();
The problem is that mouse clicks are not getting detected. I guess it is
because the mouse clicks happen when the game is waiting through
SDL_Delay(1000), so we miss the input.
The delay MUST be there because the image has to stay for a certain amount
of time.
Please help me out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080407/cf0cd093/attachment.html
More information about the SDL
mailing list