[C++] GetMousePosition gives always 0 Edit: Solved

So here is my code:

327491-kuva-2021-01-18-214056.png

My game runs this code every time you press the left mouse and it always gives 0 as result.

327492-kuva-2021-01-18-214215.png

Does anyone know what I do wrong here?

Edit:

So I did manage to find the problem instantly after I send this question xd

GetMousePosition Works well. The problem was that UE_LOG does not work with vectors so I needed to convert them to int first.

Most types in UE4 have ToString() function that converts continence of value in displayable form (for debugging ofcorse ;p).