• Content Count

  • Joined

  • Last visited

  1. I solved the problem using this method this.renderer.view.setAttribute("id", "worldCanvas"); $("#world").html(this.renderer.view); var lastDownTarget, canvas; canvas = document.getElementById('worldCanvas'); lastDownTarget = canvas; document.addEventListener('mousedown', function(event) { lastDownTarget =; }, false); document.addEventListener('keydown', function(event) { if(lastDownTarget == canvas) { event.preventDefault(); event.stopPropagation(); wi.doKeyDown(event); } }, false);
  2. $("#world").html(this.renderer.view)$("#world").bind( "keydown", function( event ) { event.preventDefault(); console.log(event);});$('#world').focus();But, its not help, no keyboard event, when i press
  3. Hello I need to set events only for pixi.js canvas. how can i do it? document.addEventListener('keydown', function(event) { });This method start leasten all window and block html inputs. Thank you
  4. Hello I need help with total destroy pixi.js for restart it, like reload page. I didn't find API for this, what i should remove/stop, mb someone already did it? Thank you