Update inputs => comment
This commit is contained in:
parent
5e61e7b312
commit
6b4766d5c6
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ class Input {
|
|||
console.log("Clic de la souris");
|
||||
});
|
||||
|
||||
window.addEventListener("keydown", function(event) {
|
||||
/*window.addEventListener("keydown", function(event) {
|
||||
switch(event.key) {
|
||||
case "ArrowUp":
|
||||
console.log("Flèche du haut");
|
||||
|
@ -32,7 +32,7 @@ class Input {
|
|||
console.log("Flèche de droite pressée");
|
||||
break;
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
window.addEventListener("keydown", (e)=>{
|
||||
this.keysDown.add(e.key.toLowerCase())
|
||||
|
|
Loading…
Reference in a new issue