Set Mouse Position Effect

I have a side scrolling game where the player controls a reticle around the player I want the player to shoot at the angle of the reticle but I only want the reticle to go a certain distance from the player for different weapons.

My first thought is to just manually set the mouse cursor position to lock it inside a circle, but this would require an external .DLL from WinForms... but this game is supposed to be cross platform.

Anybody have any ideas how to accomplish this effect a different way?

(Does Screen.lockCursor still give you the mouse movement?)

You can use mouse deltas to get the mouse movement while lockCursor is on.

To get deltas, use Input.GetAxis(“Mouse X”) and Input.GetAxis(“Mouse Y”).

Make sure the sensitivity of those axis in the Input Manager is set to 1!

Hope this helps