request for the pointer to be locked on the parent DOM element. (Must be called in a click event or an event that requires user interaction)
return true if the request was successfully submitted
input
// register on the pointer lock change eventevent.on(event.POINTERLOCKCHANGE, (locked)=> { console.log("pointer lock: " + locked);});// request for pointer lockme.input.requestPointerLock(); Copy
// register on the pointer lock change eventevent.on(event.POINTERLOCKCHANGE, (locked)=> { console.log("pointer lock: " + locked);});// request for pointer lockme.input.requestPointerLock();
request for the pointer to be locked on the parent DOM element. (Must be called in a click event or an event that requires user interaction)