[SDL] Mac OS X Quartz Events Change/Suggestion
Martin Storsjö
martin at martin.st
Thu Mar 9 08:20:59 PST 2006
On Thu, 9 Mar 2006, ggadwa at charter.net wrote:
> Bear with me here as I've skimmed the code and there might be other
> issues I'm missing.
>
> Before I made my engine cross-platform, my mouse control was much
> better. After moving to SDL, it's a lot worse. I think it has
> something to do with the nature of not being able to call PumpEvents
> enough during times of heavy rendering. You can't use a thread on OS X
> as this causes a crash (the event routines need to be called on the main
> thread.)
Quick question, are you doing
if (SDL_PollEvent(&event))
or
while (SDL_Pollevent(&event))
in your main loop? If you're using the former, try the latter. :-)
// Martin
More information about the SDL
mailing list