Which kinda works but the problem is even if I disable the mouse cursor it still move around. So when you press the right mouse button, the mouse disappears and you can rotate the camera. But when you release the right mouse button the mouse appears at a different location.
So I thought maybe I could safe the mouse position and then set it again.
The problem is there is no setter for the mouse position in the playercontroller.
I am using google for last 2 hours trying to solve how to do this in blueprint. =)
Looks that for some reason there is no blueprint functionality atm, and we have to use C++ implementation. I am still figguring out how to connect C++ with the blueprints, but looks I’ll solve it soon.
using setmouseposition() in practice you could use a gamepads joystick to move the mouse cursor I’m assuming in C++, but is there a function that I could call to simulate a mouse button being pressed or is there a command in UMG that I can call if button A is pressed and the mouse pointer is over a button then press it?