I am making a game where you move in eight directions and aim and shoot with the mouse.
What I would like to do is constrain the cursor to a circular, ~150px radius around the player. It is important that the mouse itself be constrained, not just the visual of the crosshair. The mouse cursor and crosshair should be 1:1.
Within the 150px radius the mouse should act normally. Which is to say, I'm not looking for the cursor to move around the edges of the circle, but to be contained within. The cursor being on the edge of the circle should not inhibit rotating around the player, however.
I would also like the mouse cursor to inherit the directional speed of the player so that I can use an advanced camera system without the aim becoming misaligned (since the mouse cursor does not scroll at the same speed as the screen).
I hope this isn't as complicated as I've convinced myself it is