EMouseLockMode

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h

Include

#include "Engine/EngineBaseTypes.h"

Syntax

enum EMouseLockMode
{
    DoNotLock,
    LockOnCapture,
    LockAlways,
    LockInFullscreen,
}

Values

Name

Description

DoNotLock

Do not lock the mouse cursor to the viewport

LockOnCapture

Only lock the mouse cursor to the viewport when the mouse is captured

LockAlways

Always lock the mouse cursor to the viewport

LockInFullscreen

Lock the cursor if we're in fullscreen

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss