[SDL] SDL 1.3 event queue
kanzels at gmail.com
Thu Apr 29 00:19:28 PDT 2010
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 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.
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL