eventChange(event) {
        let oPointerLockElement = document.pointerLockElement || document.mozPointerLockElement;
        if (oPointerLockElement) {
            this._handlers.mousemove = event => this.eventMouseMove(event);
            document.addEventListener('mousemove', this._handlers.mousemove, false);
            this.bLocked = true;
            this.trigger('enter');
        } else {
            document.removeEventListener('mousemove', this._handlers.mousemove, false);
            this._handlers.mousemove = null;
            this.oElement = null;
            this.bLocked = false;
            this.trigger('exit');
        }
    }
/**
     * This is the Change event handler. Called when something changed concerning the pointer locking process.
     * These events are dealt with :
     * 1) we are entering PointerLock mode (because we requested to, with the requestPointerLock function)
     * 2) we are exiting PointerLock mode (because we requested to, with the exitPointerLock function)
     * @param event {Event}
     */
This is the Change event handler. Called when something changed concerning the pointer locking process.
These events are dealt with :
1) we are entering PointerLock mode (because we requested to, with the requestPointerLock function)
2) we are exiting PointerLock mode (because we requested to, with the exitPointerLock function)
@param event {Event}
This is the Change event handler . Called when something changed concerning the pointer locking process . These events are dealt with : 1 ) we are entering PointerLock mode ( because we requested to with the requestPointerLock function ) 2 ) we are exiting PointerLock mode ( because we requested to with the exitPointerLock function ) @param event { Event }
eventChange(event) {
        let oPointerLockElement = document.pointerLockElement || document.mozPointerLockElement;
        if (oPointerLockElement) {
            this._handlers.mousemove = event => this.eventMouseMove(event);
            document.addEventListener('mousemove', this._handlers.mousemove, false);
            this.bLocked = true;
            this.trigger('enter');
        } else {
            document.removeEventListener('mousemove', this._handlers.mousemove, false);
            this._handlers.mousemove = null;
            this.oElement = null;
            this.bLocked = false;
            this.trigger('exit');
        }
    }
eventChange ( event ) { let oPointerLockElement = document . pointerLockElement || document . mozPointerLockElement ; if ( oPointerLockElement ) { this . _handlers . mousemove = event => this . eventMouseMove ( event ) ; document . addEventListener ( 'mousemove' , this . _handlers . mousemove , false ) ; this . bLocked = true ; this . trigger ( 'enter' ) ; } else { document . removeEventListener ( 'mousemove' , this . _handlers . mousemove , false ) ; this . _handlers . mousemove = null ; this . oElement = null ; this . bLocked = false ; this . trigger ( 'exit' ) ; } }
This is the Change event handler.
This is the Change event handler .