PointerLockControls
First-person camera controls built on the browser Pointer Lock API. Relative mouse motion turns the camera while the pointer is locked, and moveForward() and moveRight() translate it parallel to the ground plane. Listeners are installed on the element’s ownerDocument. Dispatches change after each look update, lock when the pointer locks to domElement, and unlock when it is released.