Snapping the mouse to the center of the window?

hello, it sounds a little confusing. if you position the mouse in the center every frame it basically means that the mouse becomes unusable to you, no ? in that case, you could ignore mouseX and mouseY as a means of interaction and use noCursor() to hide it.

if you use the mouse as a navigational tool as is usual in FPS games, you might simply not show the cursor (tickling your avatar in the back) and use mouseX to turn him left and right.

however, for your question, maybe this will be interesting to you:

2 Likes