Fix controller for fast forward

This commit is contained in:
Ethan O'Brien 2023-08-08 09:15:29 -05:00
parent 24b710623a
commit dadfc40903
3 changed files with 3 additions and 3 deletions

View file

@ -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") {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long