From 25ece9474bb5c9c442d59c6c3902309abdc8e57e Mon Sep 17 00:00:00 2001 From: Alexey Nurgaliev Date: Mon, 7 Aug 2023 19:11:51 +0300 Subject: [PATCH] atari2600, atari7800 - update controls and virtual keyboards --- data/emulator.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/emulator.js b/data/emulator.js index 2395db5..8886a0b 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -1989,6 +1989,8 @@ class EmulatorJS { } else if ('atari2600' === this.getControlScheme()) { buttons = [ {id: 0, label: 'FIRE'}, + {id: 2, label: 'SELECT'}, + {id: 3, label: 'RESET'}, {id: 4, label: 'UP'}, {id: 5, label: 'DOWN'}, {id: 6, label: 'LEFT'}, @@ -2002,6 +2004,9 @@ class EmulatorJS { buttons = [ {id: 0, label: 'BUTTON 1'}, {id: 8, label: 'BUTTON 2'}, + {id: 2, label: 'SELECT'}, + {id: 3, label: 'PAUSE'}, + {id: 9, label: 'RESET'}, {id: 4, label: 'UP'}, {id: 5, label: 'DOWN'}, {id: 6, label: 'LEFT'}, @@ -2620,12 +2625,17 @@ class EmulatorJS { info = [ {"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":"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()) { info = [ {"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":"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()) { info = [