Detecting application switcher/Expose

Posts: 63
Joined: 2005.12
Post: #1
I'm working on an SDL-based game in OS X. I'd like for the game to pause when the application switcher window is opened (Cmd-Tab) or when Expose mode is activated. Unfortunately, there doesn't seem to be a way to determine via SDL when these events have occurred.

Is there any way I could determine programmatically whether the application switcher or Expose is currently active? (Modifying the SDL source code probably isn't an option, but I could modify SDLmain.m or write some Objective-C code if needed.)

Any tips or advice would be very helpful.

Quote this message in a reply
Post Reply