Window.onvrdisplaypointerunrestricted

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The onvrdisplaypointerunrestricted property of the Window interface represents an event handler that will run when the VR display's pointer input is no longer restricted to consumption via a pointerlocked element.

The event object is of type VRDisplayEvent.

Syntax

window.onvrdisplaypointerunrestricted = functionRef;

Examples

window.onvrdisplaypointerunrestricted = function() {
  // Run code to handle freeing app from pointer lock
};

Specifications

Specification Status Comment
WebVR 1.1
The definition of 'onvrdisplaypointerunrestricted' in that specification.
Draft Initial definition

Browser compatibility

BCD tables only load in the browser

See also