Getting Activate / Deactivate events in SDL 1.3?

According to the SDL 1.3 Wiki, the SDL_ActiveEvent structure is deprecated:

http://wiki.libsdl.org/moin.cgi/SDL_Event
http://wiki.libsdl.org/moin.cgi/SDL_ActiveEvent

I’m wondering what I should be using instead to be notified when the app is activated and deactivated?

Anyone??

Try SDL_WindowEvent instead.On 30 November 2010 22:25, VernJensen wrote:

Anyone??

Yes, turns out I was looking for SDL_WINDOWEVENT_FOCUS_GAINED and SDL_WINDOWEVENT_FOCUS_LOST which work perfectly.