Pointer lock demo

Pointer lock demo

This demo demonstrates usage of the pointer lock API. Click on the canvas area and your mouse will directly control the ball inside the canvas, not your mouse pointer. You can press escape to return to the standard expected state.

Your browser does not support HTML5 canvas