Added logging for life cycle events

This commit is contained in:
Sam Lantinga 2024-07-30 07:49:37 -07:00
parent 900213e16e
commit f039b2290a

View file

@ -1732,6 +1732,9 @@ int SDL_SendAppEvent(SDL_EventType eventType)
case SDL_EVENT_WILL_ENTER_FOREGROUND:
case SDL_EVENT_DID_ENTER_FOREGROUND:
// We won't actually queue this event, it needs to be handled in this call stack by an event watcher
if (SDL_EventLoggingVerbosity > 0) {
SDL_LogEvent(&event);
}
posted = SDL_CallEventWatchers(&event);
break;
default: