Any way to disable mouse cursor movement?

So I have a top down game that uses the mouse cursor most of the time however if you hold right click it rotates the camera and hides the cursor.

The issue is while the cursor is hidden it is still moving on the screen. I’d like for it to stay in the same spot while rotating view with mouse otherwise every time you rotate you hit the edge of the screen.

I was able to do it by using GetMousePosition and SetMouseLocation in the PlayerController. Little confused why one returns a float and one accepts an int but it works.

1 Like