v1 #4

已合併
rebillar 2023-12-29 21:34:13 +01:00dev 合併了 50 個提交至 master
只顯示提交 f12fccdddb 的變更 - 顯示所有提交

查看文件

@ -52,7 +52,7 @@ class Input {
window.addEventListener("keydown", (e)=>{ window.addEventListener("keydown", (e)=>{
//blocks the action of the key (cf. Killian) //blocks the action of the key (cf. Killian)
if(["Space","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code)) { if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code)) {
e.preventDefault(); e.preventDefault();
} }
this.keysDown.add(e.key.toLowerCase()) this.keysDown.add(e.key.toLowerCase())