UGameViewportClient::ShouldAlwaysLockMouse

Gets whether or not the cursor should always be locked to the viewport

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FViewportClient::ShouldAlwaysLockMouse()

UGameViewportClient::ShouldAlwaysLockMouse()

References

Module

Engine

Header

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

Include

#include "Engine/GameViewportClient.h"

Syntax

virtual bool ShouldAlwaysLockMouse()

Remarks

Gets whether or not the cursor should always be locked to the viewport