[SDL] using an image as mouse cursor
clemens at 1541.org
Sat Jan 22 09:58:43 PST 2005
"Roger D. Vargas" <roger at ehtsc.co.cu> wrote:
> > most likely you process one event at a time instead of all events in
> > the queue.
> > change your 'if (SDL_PollEvent ...)' to a 'while (SDL_PollEvent)'
> Well, yes, that was the problem. But I still dont get the difference
> between processing with if and processing with while.
do you have a SDL_Delay() or usleep() somewhere in your eventloop? if
yes - think about it a little bit. :)
More information about the SDL