lundi 29 octobre 2018

Javascript left key released

I have some code that when a canvas is clicked, it sends the key event to a function and then uses:

if (e.buttons==1) { //code  here }

This detects if the left button has been clicked. How would i detect if the left button has been released?




Aucun commentaire:

Enregistrer un commentaire