Currently I have with addEventListener
btnDrive.addEventListener('click', () => {
but I see there is a way to to in this way
this.app.mouse.on(pc.EVENT_MOUSEDOWN, this.onDrive, this);
how to ‘bind’ with html button?
Currently I have with addEventListener
btnDrive.addEventListener('click', () => {
but I see there is a way to to in this way
this.app.mouse.on(pc.EVENT_MOUSEDOWN, this.onDrive, this);
how to ‘bind’ with html button?
The way you are currently doing it is the ‘right’ of doing it as you hooking up to a HTML element.