[SDL] using an image as mouse cursor

Roger D. Vargas roger at ehtsc.co.cu
Mon Jan 24 03:25:58 PST 2005


El sáb, 22-01-2005 a las 17:58, Clemens Kirchgatterer escribió:
> "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. :)
No, i have a delay but out of event processing, inside game processing
loop.

> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
-- 
Roger D. Vargas
Linux user #180787
ICQ: 117641572
* No hay nada tan importante que no pueda ser olvidado *
Alzheimer





More information about the SDL mailing list