FSceneViewport::GetMousePos

Sets MousePosition to the current mouse position

Windows
MacOS
Linux

Override Hierarchy

FViewport::GetMousePos()

FSceneViewport::GetMousePos()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp

Syntax

virtual void GetMousePos
(
    FIntPoint & MousePosition,
    const bool bLocalPosition
)

Remarks

Sets MousePosition to the current mouse position

Parameters

Parameter

Description

MousePosition

Populated with the current mouse position

bLocalPosition

Indicates whether the mouse position returned should be in local or absolute space

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