Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APlayerController > API/Runtime/Engine/GameFramework/APlayerController/GetMousePosition
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include | #include "GameFramework/PlayerController.h" |
UFUNCTION (BlueprintCallable, Category="Game|Player")
bool GetMousePosition
(
float & LocationX,
float & LocationY
) const
Remarks
Retrieves the X and Y screen coordinates of the mouse cursor. Returns false if there is no associated mouse device