Open Squishy123 opened 4 years ago
If you create an inputhandler with a custom function it breaks.
this.input = new InputHandler(document.querySelector('body'), { "keydown": this.handleInput });
Currently a work-around is to wrap the function in an array
this.input = new InputHandler(document.querySelector('body'), { "keydown": [this.handleInput] });
Probably something wrong with handler linking in the constructor.
If you create an inputhandler with a custom function it breaks.
Currently a work-around is to wrap the function in an array
Probably something wrong with handler linking in the constructor.