[SDL] SDL 1.3 event queue

Pavel Kanzelsberger kanzels at gmail.com
Thu Apr 29 00:19:28 PDT 2010


Hello guys,

I'm playing a little more with SDL on Mac and using Cocoa for main  
menu. However I noticed one strange thing.

If user goes to the main menu on Mac, or some modal (alert) dialog is  
displayed from SDL application, after few seconds SDL event queue is  
somehow locked or inactive and fails to get new events through  
SDL_PushEvent.
SDL_PushEvent starts to return -1 and will not accept new events until  
I leave the menu.

Basically if I'm fast in the menu I can choose Quit for example, but  
if I spend few seconds in the menu, event queue is locked and even  
Quit event won't make it to the queue and will report -1.

How could I fix this? I tried SDL_INIT_EVENTTHREAD but then my  
application freezed on startup.

thanks,
---
Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100429/ce1d963c/attachment.htm>


More information about the SDL mailing list