Questions tagged [pointerlock]

Pointer lock provides input methods based on the movement of the mouse over time, not just the absolute position of the mouse cursor.

61 questions
-1
votes
1 answer

Change mouse position in p5(with pointer lock api)

I want to make the mouse go to the center of the screen every time it hits the border in p5 but i dont know how to change the mouse position, is there a way to do that with pointer lock api?
Mau125
  • 1
1 2 3 4
5