From 59ea6d86ff3db7b9d50f2e3212128ffc5df169a2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 15 Dec 2012 19:58:21 +0000 Subject: [PATCH] Atari 7800 - add Pause button to controller config, set defaults for console buttons, also set some defaults for 2600 console buttons --- BizHawk.MultiClient/Config.cs | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs index 74918566a0..324b49db34 100644 --- a/BizHawk.MultiClient/Config.cs +++ b/BizHawk.MultiClient/Config.cs @@ -42,7 +42,7 @@ namespace BizHawk.MultiClient Atari7800Controller[1] = new DoubleButtonJoyStickTemplate(false); Atari7800AutoController[0] = new DoubleButtonJoyStickTemplate(false); Atari7800AutoController[1] = new DoubleButtonJoyStickTemplate(false); - Atari7800ConsoleButtons[0] = new Atari2600ConsoleButtonsTemplate(true); + Atari7800ConsoleButtons[0] = new Atari7800ConsoleButtonsTemplate(true); NESAutoController[0] = new NESControllerTemplate(false); NESAutoController[1] = new NESControllerTemplate(false); @@ -716,7 +716,7 @@ namespace BizHawk.MultiClient //Atari 7800 Settings public DoubleButtonJoyStickTemplate[] Atari7800Controller = new DoubleButtonJoyStickTemplate[2]; public DoubleButtonJoyStickTemplate[] Atari7800AutoController = new DoubleButtonJoyStickTemplate[2]; - public Atari2600ConsoleButtonsTemplate[] Atari7800ConsoleButtons = new Atari2600ConsoleButtonsTemplate[1]; + public Atari7800ConsoleButtonsTemplate[] Atari7800ConsoleButtons = new Atari7800ConsoleButtonsTemplate[1]; //ColecoVision public ColecoVisionControllerTemplate[] ColecoController = new ColecoVisionControllerTemplate[2]; @@ -1158,8 +1158,8 @@ namespace BizHawk.MultiClient public class Atari2600ConsoleButtonsTemplate : iControllerConfigObject { - public string Reset = ""; - public string Select = ""; + public string Reset = "C"; + public string Select = "V, X1 Start"; public bool Enabled = false; public Atari2600ConsoleButtonsTemplate() { } @@ -1179,6 +1179,31 @@ namespace BizHawk.MultiClient } } + public class Atari7800ConsoleButtonsTemplate : iControllerConfigObject + { + public string Reset = "C"; + public string Select = "V, X1 Start"; + public string Pause = ""; + public bool Enabled = false; + + public Atari7800ConsoleButtonsTemplate() { } + public Atari7800ConsoleButtonsTemplate(bool defaults) + { + if (defaults) + { + SetDefaults(); + } + } + + public void SetDefaults() + { + Enabled = true; + Reset = ""; + Select = ""; + Pause = ""; + } + } + public class ColecoVisionControllerTemplate : iControllerConfigObject { public string Up = "";