MCPcopy
hub / github.com/KilledByAPixel/LittleJS / pointerLockIsActive

Function pointerLockIsActive

src/engineInput.js:320–321  ·  view source on GitHub ↗

Check if pointer is locked (true if locked) * @return {boolean} * @memberof Input

()

Source from the content-addressed store, hash-verified

318 * @return {boolean}
319 * @memberof Input */
320function pointerLockIsActive()
321{ return document.pointerLockElement === mainCanvas; }
322
323///////////////////////////////////////////////////////////////////////////////
324// Input variables used by engine

Callers 3

onMouseMoveFunction · 0.85
gameUpdateFunction · 0.85
gameRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected