API

Function RequestPointerlock

  • Ask the browser to promote the current element to pointerlock mode

    Parameters

    • element: HTMLElement

      defines the DOM element to promote

    Returns void