From a47d3fce86b6d56eeb5ab46b50bf78f7108f52a2 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Tue, 8 Aug 2023 09:15:29 -0500 Subject: [PATCH] Fix controller for fast forward --- data/emulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/emulator.js b/data/emulator.js index a992287..da9223b 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -2429,7 +2429,7 @@ class EmulatorJS { if (this.settingsMenu.style.display !== "none" || this.isPopupOpen()) return; const special = [16, 17, 18, 19, 20, 21, 22, 23]; for (let i=0; i<4; i++) { - for (let j=0; j<27; j++) { + for (let j=0; j<28; j++) { if (['buttonup', 'buttondown'].includes(e.type) && (this.controls[i][j] && this.controls[i][j].value2 === e.index)) { this.gameManager.simulateInput(i, j, (e.type === 'buttonup' ? 0 : (special.includes(j) ? 0x7fff : 1))); } else if (e.type === "axischanged") {