FirstPersonControls constructor
FirstPersonControls(
- Camera object,
- GlobalKey<
DomLikeListenableState> listenableKey
Implementation
FirstPersonControls(this.object,this.listenableKey):super(){
this.domElement.addEventListener( 'contextmenu', contextmenu, false );
this.domElement.addEventListener( 'mousemove', onMouseMove, false );
this.domElement.addEventListener( 'pointerdown', onMouseDown, false );
this.domElement.addEventListener( 'pointerup', onMouseUp, false );
//this.domElement.setAttribute( 'tabindex', - 1 );
this.domElement.addEventListener( 'keydown', onKeyDown, false );
this.domElement.addEventListener( 'keyup', onKeyUp, false );
handleResize();
setOrientation(this);
}