APlayerController::SetMouseLocation

Positions the mouse cursor in screen space, in pixels.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

void SetMouseLocation
(
    const int X,
    const int Y
)

Remarks

Positions the mouse cursor in screen space, in pixels.