Another Cursor Position Question

I want to click and drag on the screen to rotate the camera but i don’t want the cursor to be able to go off screen. Its easy with

Screen.lockCursor = true;

But this resets the cursor to the center of the screen when you unlock it. I want the cursor to reappear where the user started dragging it.

I imagine this is a common problem. Anybody know what to do?

Lol quoting myself.

Third person camera orbiting is lame and frustrating without this being possible.