Simple straight forward question

For those who it applies, Happy Thanksgiving!

I’m working on a FPS where I set up the mouse to aim for the player. I would like to reset the position of the mouse to the center of the screen on each update. How would I go about doing this? Also I’d like to not show the mouse cursor as well.

Thanks!

Just use:

Screen.showCursor=true;
Screen.lockCursor=true;

This should solve your problems.
Don’t forget to unlock and show it at the menu/when quitting the game.

Cool thanks. I was wondering about this.