mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Fix controller for fast forward
This commit is contained in:
parent
437071e9bb
commit
a47d3fce86
1 changed files with 1 additions and 1 deletions
|
@ -2429,7 +2429,7 @@ class EmulatorJS {
|
||||||
if (this.settingsMenu.style.display !== "none" || this.isPopupOpen()) return;
|
if (this.settingsMenu.style.display !== "none" || this.isPopupOpen()) return;
|
||||||
const special = [16, 17, 18, 19, 20, 21, 22, 23];
|
const special = [16, 17, 18, 19, 20, 21, 22, 23];
|
||||||
for (let i=0; i<4; i++) {
|
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)) {
|
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)));
|
this.gameManager.simulateInput(i, j, (e.type === 'buttonup' ? 0 : (special.includes(j) ? 0x7fff : 1)));
|
||||||
} else if (e.type === "axischanged") {
|
} else if (e.type === "axischanged") {
|
||||||
|
|
Loading…
Reference in a new issue