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:

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

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




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.