UGameViewportClient::SetMouseLockMode

Sets the current mouse cursor lock mode when the viewport is clicked

Choose your operating system:

Windows

macOS

Linux

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

void SetMouseLockMode
(
    EMouseLockMode InMouseLockMode
)

Remarks

Sets the current mouse cursor lock mode when the viewport is clicked