atari2600, atari7800 - update controls and virtual keyboards

This commit is contained in:
Alexey Nurgaliev 2023-08-07 19:11:51 +03:00
parent 50c811e8a2
commit 25ece9474b

View file

@ -1989,6 +1989,8 @@ class EmulatorJS {
} else if ('atari2600' === this.getControlScheme()) { } else if ('atari2600' === this.getControlScheme()) {
buttons = [ buttons = [
{id: 0, label: 'FIRE'}, {id: 0, label: 'FIRE'},
{id: 2, label: 'SELECT'},
{id: 3, label: 'RESET'},
{id: 4, label: 'UP'}, {id: 4, label: 'UP'},
{id: 5, label: 'DOWN'}, {id: 5, label: 'DOWN'},
{id: 6, label: 'LEFT'}, {id: 6, label: 'LEFT'},
@ -2002,6 +2004,9 @@ class EmulatorJS {
buttons = [ buttons = [
{id: 0, label: 'BUTTON 1'}, {id: 0, label: 'BUTTON 1'},
{id: 8, label: 'BUTTON 2'}, {id: 8, label: 'BUTTON 2'},
{id: 2, label: 'SELECT'},
{id: 3, label: 'PAUSE'},
{id: 9, label: 'RESET'},
{id: 4, label: 'UP'}, {id: 4, label: 'UP'},
{id: 5, label: 'DOWN'}, {id: 5, label: 'DOWN'},
{id: 6, label: 'LEFT'}, {id: 6, label: 'LEFT'},
@ -2620,12 +2625,17 @@ class EmulatorJS {
info = [ info = [
{"type":"button","text":"","id":"button1","location":"right","right":10,"top":70,"bold":true,"input_value":0}, {"type":"button","text":"","id":"button1","location":"right","right":10,"top":70,"bold":true,"input_value":0},
{"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]}, {"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]},
{"type":"button","text":"Reset","id":"reset","location":"center","left":60,"fontSize":15,"block":true,"input_value":3},
{"type":"button","text":"Select","id":"select","location":"center","left":-5,"fontSize":15,"block":true,"input_value":2}
]; ];
} else if ("atari7800" === this.getControlScheme()) { } else if ("atari7800" === this.getControlScheme()) {
info = [ info = [
{"type":"button","text":"1","id":"button1","location":"right","right":75,"top":70,"bold":true,"input_value":0}, {"type":"button","text":"1","id":"button1","location":"right","right":75,"top":70,"bold":true,"input_value":0},
{"type":"button","text":"2","id":"button2","location":"right","right":5,"top":70,"bold":true,"input_value":8}, {"type":"button","text":"2","id":"button2","location":"right","right":5,"top":70,"bold":true,"input_value":8},
{"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]}, {"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]},
{"type":"button","text":"Reset","id":"reset","location":"center","left":-30,"fontSize":15,"block":true,"input_value":9},
{"type":"button","text":"Pause","id":"pause","location":"center","left":90,"fontSize":15,"block":true,"input_value":3},
{"type":"button","text":"Select","id":"select","location":"center","left":30,"fontSize":15,"block":true,"input_value":2},
]; ];
} else if ("lynx" === this.getControlScheme()) { } else if ("lynx" === this.getControlScheme()) {
info = [ info = [