mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Resolve #756
This commit is contained in:
parent
560875cae0
commit
5e5df38cff
1 changed files with 14 additions and 1 deletions
|
@ -2094,7 +2094,7 @@ class EmulatorJS {
|
||||||
body.classList.add("ejs_control_body");
|
body.classList.add("ejs_control_body");
|
||||||
|
|
||||||
let buttons;
|
let buttons;
|
||||||
if (['nes', 'gb'].includes(this.getControlScheme())) {
|
if ("gb" === this.getControlScheme()) {
|
||||||
buttons = [
|
buttons = [
|
||||||
{id: 8, label: this.localization('A')},
|
{id: 8, label: this.localization('A')},
|
||||||
{id: 0, label: this.localization('B')},
|
{id: 0, label: this.localization('B')},
|
||||||
|
@ -2105,6 +2105,19 @@ class EmulatorJS {
|
||||||
{id: 6, label: this.localization('LEFT')},
|
{id: 6, label: this.localization('LEFT')},
|
||||||
{id: 7, label: this.localization('RIGHT')},
|
{id: 7, label: this.localization('RIGHT')},
|
||||||
];
|
];
|
||||||
|
} else if ("nes" === this.getControlScheme()) {
|
||||||
|
buttons = [
|
||||||
|
{id: 8, label: this.localization('A')},
|
||||||
|
{id: 0, label: this.localization('B')},
|
||||||
|
{id: 2, label: this.localization('SELECT')},
|
||||||
|
{id: 3, label: this.localization('START')},
|
||||||
|
{id: 4, label: this.localization('UP')},
|
||||||
|
{id: 5, label: this.localization('DOWN')},
|
||||||
|
{id: 6, label: this.localization('LEFT')},
|
||||||
|
{id: 7, label: this.localization('RIGHT')},
|
||||||
|
{id: 10, label: this.localization('EJECT')},//Famicon games only
|
||||||
|
{id: 11, label: this.localization('SWAP DISKS')},
|
||||||
|
];
|
||||||
} else if ('snes' === this.getControlScheme()) {
|
} else if ('snes' === this.getControlScheme()) {
|
||||||
buttons = [
|
buttons = [
|
||||||
{id: 8, label: this.localization('A')},
|
{id: 8, label: this.localization('A')},
|
||||||
|
|
Loading…
Reference in a new issue