/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h
Gets whether or not the viewport captures the Mouse on launch of the application Technically this controls capture on the first window activate, so in situations where the application is launched but isn't activated the effect is delayed until activation.
virtual bool CaptureMouseOnLaunch()