UWindowsMixedRealityFunctionLibrary::LockMouseToCenter

Locks the mouse cursor to the center of the screen if the hmd is worn.

Windows
MacOS
Linux

References

Module

WindowsMixedRealityHMD

Header

/Engine/Plugins/Runtime/WindowsMixedReality/Source/WindowsMixedRealityHMD/Public/WindowsMixedRealityFunctionLibrary.h

Include

#include "WindowsMixedRealityFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/WindowsMixedReality/Source/WindowsMixedRealityHMD/Private/WindowsMixedRealityFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="WindowsMixedRealityHMD")
static void LockMouseToCenter
(
    bool locked
)

Remarks

Locks the mouse cursor to the center of the screen if the hmd is worn. Default is true to help guarantee mouse focus when the hmd is worn. Set this to false to override the default behavior if your application requires free mouse movement. locked: true to lock to center, false to not lock.

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