lock method

dynamic lock()

Implementation

lock() {
  this.isLocked = true;
  this.domElement.requestPointerLock();
}