How to make the cursor show up at the opposite side when it meets the border of screen?

Hello pros,in my game I have an exhibition and player controls the view with mouse moving around. The camera is focusing one thing and rotating around it.
The rotation is bonded with the pixels the cursor moves across.
But the screen is limited so when cursor meets the border the view is stuck and can’t rotate any further. I want that cursor will show at the the other side of screen so that the rotation is unlimited and smooth.

Any way to make it true?

I googled but it’s like no one ever asked this. Thanks.

You need to lock system cursor and create virtual cursor

1 Like

Brilliant. I never thought this . Thank you!

How do you do that?

1 Like

Hide the mouse and make a sprite follow the position/input