exitPointerLock method
Exits the document out of pointer lock state.
Syntax
document.exitPointerLock();Parameters
This method has no parameters.
Return value
This method does not return a value.
Standards information
Remarks
Also causes the pointerlockchange event to fire and the system mouse cursor to once again display.
Pointer lock state is also exited when the user presses the ESC key or when the browser window loses focus.
See also
Show: