bindEvents()
    {
        // @ifdef DEBUG
        debug.ASSERT(!this._eventsBound, 'bindEvents called again after events were already bound.');

        this._eventsBound = true;
        // @endif

        const dom = this.renderer.gl.canvas;

        if (window.PointerEvent)
        {
            dom.addEventListener('pointerdown', this._boundHandleEvent);
            dom.addEventListener('pointermove', this._boundHandleEvent);
            dom.addEventListener('pointerout', this._boundHandleEvent);
            window.addEventListener('pointerup', this._boundHandleEvent);
        }
        else
        {
            dom.addEventListener('mousedown', this._boundHandleEvent);
            dom.addEventListener('mousemove', this._boundHandleEvent);
            dom.addEventListener('mouseout', this._boundHandleEvent);
            window.addEventListener('mouseup', this._boundHandleEvent);

            dom.addEventListener('touchstart', this._boundHandleEvent);
            dom.addEventListener('touchmove', this._boundHandleEvent);
            dom.addEventListener('touchcancel', this._boundHandleEvent);
            window.addEventListener('touchend', this._boundHandleEvent);
        }

        dom.addEventListener('wheel', this._boundHandleEvent);
    }
/**
     * Binds all the DOM events to the view passed in, defaulting to the renderer view.
     * If you don't want to manager DOM events on your own, this is a good option to
     * let the manager do it for you.
     *
     * @param {HTMLElement} view - The element to use as the root view.
     */
Binds all the DOM events to the view passed in, defaulting to the renderer view.
If you don't want to manager DOM events on your own, this is a good option to
let the manager do it for you.

@param {HTMLElement} view - The element to use as the root view.
Binds all the DOM events to the view passed in defaulting to the renderer view . If you don ' t want to manager DOM events on your own this is a good option to let the manager do it for you . @param { HTMLElement } view - The element to use as the root view .
bindEvents()
    {
        debug.ASSERT(!this._eventsBound, 'bindEvents called again after events were already bound.');
        this._eventsBound = true;
        const dom = this.renderer.gl.canvas;
        if (window.PointerEvent)
        {
            dom.addEventListener('pointerdown', this._boundHandleEvent);
            dom.addEventListener('pointermove', this._boundHandleEvent);
            dom.addEventListener('pointerout', this._boundHandleEvent);
            window.addEventListener('pointerup', this._boundHandleEvent);
        }
        else
        {
            dom.addEventListener('mousedown', this._boundHandleEvent);
            dom.addEventListener('mousemove', this._boundHandleEvent);
            dom.addEventListener('mouseout', this._boundHandleEvent);
            window.addEventListener('mouseup', this._boundHandleEvent);
            dom.addEventListener('touchstart', this._boundHandleEvent);
            dom.addEventListener('touchmove', this._boundHandleEvent);
            dom.addEventListener('touchcancel', this._boundHandleEvent);
            window.addEventListener('touchend', this._boundHandleEvent);
        }
        dom.addEventListener('wheel', this._boundHandleEvent);
    }
bindEvents ( ) { debug . ASSERT ( ! this . _eventsBound , 'bindEvents called again after events were already bound.' ) ; this . _eventsBound = true ; const dom = this . renderer . gl . canvas ; if ( window . PointerEvent ) { dom . addEventListener ( 'pointerdown' , this . _boundHandleEvent ) ; dom . addEventListener ( 'pointermove' , this . _boundHandleEvent ) ; dom . addEventListener ( 'pointerout' , this . _boundHandleEvent ) ; window . addEventListener ( 'pointerup' , this . _boundHandleEvent ) ; } else { dom . addEventListener ( 'mousedown' , this . _boundHandleEvent ) ; dom . addEventListener ( 'mousemove' , this . _boundHandleEvent ) ; dom . addEventListener ( 'mouseout' , this . _boundHandleEvent ) ; window . addEventListener ( 'mouseup' , this . _boundHandleEvent ) ; dom . addEventListener ( 'touchstart' , this . _boundHandleEvent ) ; dom . addEventListener ( 'touchmove' , this . _boundHandleEvent ) ; dom . addEventListener ( 'touchcancel' , this . _boundHandleEvent ) ; window . addEventListener ( 'touchend' , this . _boundHandleEvent ) ; } dom . addEventListener ( 'wheel' , this . _boundHandleEvent ) ; }
Binds all the DOM events to the view passed in, defaulting to the renderer view.
Binds all the DOM events to the view passed in defaulting to the renderer view .
// @ifdef DEBUG // @endif