Getting Activate / Deactivate events in SDL 1.3?

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

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


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


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