Get Mouse Position

Get Mouse Position

Windows
MacOS
Linux

Retrieves the X and Y screen coordinates of the mouse cursor. Returns false if there is no associated mouse device

Target is Player Controller

Get Mouse Position
Target
Location X
0.0
Location Y
0.0
Return Value

Inputs

Target
Player Controller Object Reference

Outputs

Location X
Float
Location Y
Float
Return Value
Boolean

Retrieves the X and Y screen coordinates of the mouse cursor. Returns false if there is no associated mouse device

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