First persons view, mouse gets stuck

Hello, I want to create a game with first person view, and the mouse gets stuck in the middle, and when I move the mouse, the camera moves.

however I want to be able to be in first person view and move the cursor around as I please

How do I go on about this?

I think this might help you