UGameViewportClient::CaptureMouseOnLaunch

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.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FViewportClient::CaptureMouseOnLaunch()

UGameViewportClient::CaptureMouseOnLaunch()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

virtual bool CaptureMouseOnLaunch()

Remarks

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.