suspend event notification ?

Apprentice
Posts: 5
Joined: 2009.03
Post: #1
I recently added a pause function to my game. Now i would like to pause it whenever Mac OS suspends, but how do i get notified when this happens ? Huh
My program uses SDL and is written in c++. OS version is 10.3.9.

Thanks for any help
Quote this message in a reply
Member
Posts: 114
Joined: 2005.03
Post: #2
http://developer.apple.com/qa/qa2004/qa1340.html

I didn't test this, but I think it works with SDL (I know that other CFRunLoopSources work well with SDL).
Quote this message in a reply
Apprentice
Posts: 5
Joined: 2009.03
Post: #3
Quote:I didn't test this, but I think it works with SDL (I know that other CFRunLoopSources work well with SDL).

It works! Wow
Thank you very much Smile
Quote this message in a reply
Post Reply