mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Fix typo
This commit is contained in:
parent
ac3efda401
commit
5daf377e5a
2 changed files with 4 additions and 4 deletions
|
@ -3332,9 +3332,9 @@ class EmulatorJS {
|
||||||
createDPad({container: elem, event: (up, down, left, right) => {
|
createDPad({container: elem, event: (up, down, left, right) => {
|
||||||
if (dpad.joystickInput) {
|
if (dpad.joystickInput) {
|
||||||
if (up === 1) up=0x7fff;
|
if (up === 1) up=0x7fff;
|
||||||
if (down === 1) up=0x7fff;
|
if (down === 1) down=0x7fff;
|
||||||
if (left === 1) up=0x7fff;
|
if (left === 1) left=0x7fff;
|
||||||
if (right === 1) up=0x7fff;
|
if (right === 1) right=0x7fff;
|
||||||
}
|
}
|
||||||
this.gameManager.simulateInput(0, dpad.inputValues[0], up);
|
this.gameManager.simulateInput(0, dpad.inputValues[0], up);
|
||||||
this.gameManager.simulateInput(0, dpad.inputValues[1], down);
|
this.gameManager.simulateInput(0, dpad.inputValues[1], down);
|
||||||
|
|
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue