Download

Mouse capturing gone wrong !

Hello community, sorry for the title

I’ve been wrestling with unlocked camera rotation while hiding the mouse by holding Right mouse button, otherwise the cursor is always visible.
Works fine, but to not get blocked at the viewport borders while rotating camera with right mouse button, I have to click once with left mouse button to “unlock” the mouse to be able to rotate without hitting bord ers. Yea that was messy. let me show:

While only holding Right mouse button down:

[IMG2=JSON]{“data-align”:“none”,“data-size”:“full”,“src”:“https://forums.unrealengine.com/filedata/fetch?filedataid=154939&type=thumb”}[/IMG2]​

When I do Right mouse button down + Left click once:

[IMG2=JSON]{“data-align”:“none”,“data-size”:“full”,“src”:“https://forums.unrealengine.com/filedata/fetch?filedataid=154940&type=thumb”}[/IMG2]​

What other options do I have for controlling mouse behavior besides:


GEngine->GameViewport->SetMouseLockMode()


GEngine->GameViewport->SetCaptureMouseOnClick()


SetFocusToGameViewport()

And what does “Capturing” really mean ? Is it captured on the second gif when I do “Right mouse button down + Left click once” ?

Ultimately, I want the cursor to be “locked” inside the game but being able to loock around freely with Right mouse down.