diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj
index 199a49cb6b..c48490028e 100644
--- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj
+++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj
@@ -169,19 +169,12 @@
ControllerConfig.cs
-
- UserControl
-
-
- ButtonListConfigPanel.cs
-
UserControl
ControllerConfigPanel.cs
-
Form
@@ -464,9 +457,6 @@
ControllerConfig.cs
-
- ButtonListConfigPanel.cs
-
ControllerConfigPanel.cs
diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs
index eb81f0dd97..8bf5f7db0f 100644
--- a/BizHawk.MultiClient/Config.cs
+++ b/BizHawk.MultiClient/Config.cs
@@ -56,6 +56,7 @@ namespace BizHawk.MultiClient
ColecoController = new ColecoVisionControllerTemplate(true);
+ NESConsoleButtons = new NESConsoleButtonTemplate(); ;
}
// Directories
@@ -664,6 +665,7 @@ namespace BizHawk.MultiClient
//NES settings
public NESControllerTemplate[] NESController = new NESControllerTemplate[4];
public NESControllerTemplate[] NESAutoController = new NESControllerTemplate[4];
+ public NESConsoleButtonTemplate NESConsoleButtons = new NESConsoleButtonTemplate();
//SNES settings
public SNESControllerTemplate[] SNESController = new SNESControllerTemplate[4];
@@ -717,10 +719,12 @@ namespace BizHawk.MultiClient
public bool Atari2600_ShowMissle2 = true;
public bool Atari2600_ShowBall = true;
public bool Atari2600_ShowPlayfield = true;
+ }
- //NES Console buttons
- public string NESReset = "";
- public string NESPower = "";
+ public class NESConsoleButtonTemplate
+ {
+ public string NESResetBindings = "";
+ public string NESPowerBindings = "";
}
public class SMSControllerTemplate
diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs
index 789ddfd4bc..6c208f88a7 100644
--- a/BizHawk.MultiClient/MainForm.cs
+++ b/BizHawk.MultiClient/MainForm.cs
@@ -844,8 +844,8 @@ namespace BizHawk.MultiClient
nesControls.BindMulti("P" + (i + 1) + " Start", Global.Config.NESController[i].Start);
}
- nesControls.BindMulti("Reset", Global.Config.NESReset);
- nesControls.BindMulti("Power", Global.Config.NESPower);
+ nesControls.BindMulti("Reset", Global.Config.NESConsoleButtons.NESResetBindings);
+ nesControls.BindMulti("Power", Global.Config.NESConsoleButtons.NESPowerBindings);
Global.NESControls = nesControls;
diff --git a/BizHawk.MultiClient/config/ControllerConfig.Designer.cs b/BizHawk.MultiClient/config/ControllerConfig.Designer.cs
index dd46b54763..af602edfa6 100644
--- a/BizHawk.MultiClient/config/ControllerConfig.Designer.cs
+++ b/BizHawk.MultiClient/config/ControllerConfig.Designer.cs
@@ -59,6 +59,7 @@
this.tabPage31 = new System.Windows.Forms.TabPage();
this.tabPage32 = new System.Windows.Forms.TabPage();
this.tabPage9 = new System.Windows.Forms.TabPage();
+ this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.tabControl9 = new System.Windows.Forms.TabControl();
this.tabPage52 = new System.Windows.Forms.TabPage();
this.tabPage53 = new System.Windows.Forms.TabPage();
@@ -99,10 +100,10 @@
this.tabPage49 = new System.Windows.Forms.TabPage();
this.tabPage50 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage();
+ this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.Cancel = new System.Windows.Forms.Button();
this.OK = new System.Windows.Forms.Button();
this.label38 = new System.Windows.Forms.Label();
- this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.AllowLR = new System.Windows.Forms.CheckBox();
this.NESController1Panel = new BizHawk.MultiClient.ControllerConfigPanel();
this.NESController2Panel = new BizHawk.MultiClient.ControllerConfigPanel();
@@ -143,7 +144,7 @@
this.Atari2600Autofire1Panel = new BizHawk.MultiClient.ControllerConfigPanel();
this.Atari2600Autofire2Panel = new BizHawk.MultiClient.ControllerConfigPanel();
this.TI83ControllerPanel = new BizHawk.MultiClient.ControllerConfigPanel();
- this.pictureBox7 = new System.Windows.Forms.PictureBox();
+ this.NESConsoleButtons = new BizHawk.MultiClient.ControllerConfigPanel();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).BeginInit();
@@ -152,6 +153,7 @@
this.tabPage14.SuspendLayout();
this.tabPage15.SuspendLayout();
this.tabPage16.SuspendLayout();
+ this.tabPage17.SuspendLayout();
this.tabPage18.SuspendLayout();
this.tabPage19.SuspendLayout();
this.tabPage20.SuspendLayout();
@@ -173,6 +175,7 @@
this.tabPage31.SuspendLayout();
this.tabPage32.SuspendLayout();
this.tabPage9.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
this.tabControl9.SuspendLayout();
this.tabPage52.SuspendLayout();
this.tabPage55.SuspendLayout();
@@ -206,7 +209,6 @@
this.tabPage7.SuspendLayout();
this.tabControl8.SuspendLayout();
this.tabPage8.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
this.SuspendLayout();
//
@@ -319,6 +321,7 @@
//
// tabPage17
//
+ this.tabPage17.Controls.Add(this.NESConsoleButtons);
this.tabPage17.Location = new System.Drawing.Point(4, 22);
this.tabPage17.Name = "tabPage17";
this.tabPage17.Size = new System.Drawing.Size(445, 378);
@@ -570,6 +573,20 @@
this.tabPage9.Text = "Genesis";
this.tabPage9.UseVisualStyleBackColor = true;
//
+ // pictureBox6
+ //
+ this.pictureBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.pictureBox6.Image = global::BizHawk.MultiClient.Properties.Resources.GENController;
+ this.pictureBox6.Location = new System.Drawing.Point(472, 43);
+ this.pictureBox6.Name = "pictureBox6";
+ this.pictureBox6.Size = new System.Drawing.Size(261, 305);
+ this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.pictureBox6.TabIndex = 4;
+ this.pictureBox6.TabStop = false;
+ //
// tabControl9
//
this.tabControl9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -1015,6 +1032,20 @@
this.tabPage8.Text = "TI-83";
this.tabPage8.UseVisualStyleBackColor = true;
//
+ // pictureBox7
+ //
+ this.pictureBox7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+ this.pictureBox7.Image = global::BizHawk.MultiClient.Properties.Resources.TI83_Controller;
+ this.pictureBox7.Location = new System.Drawing.Point(593, 18);
+ this.pictureBox7.Name = "pictureBox7";
+ this.pictureBox7.Size = new System.Drawing.Size(186, 273);
+ this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.pictureBox7.TabIndex = 4;
+ this.pictureBox7.TabStop = false;
+ //
// Cancel
//
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -1048,20 +1079,6 @@
this.label38.TabIndex = 10;
this.label38.Text = "* Escape clears a key mapping";
//
- // pictureBox6
- //
- this.pictureBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.pictureBox6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.pictureBox6.Image = global::BizHawk.MultiClient.Properties.Resources.GENController;
- this.pictureBox6.Location = new System.Drawing.Point(472, 43);
- this.pictureBox6.Name = "pictureBox6";
- this.pictureBox6.Size = new System.Drawing.Size(261, 305);
- this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.pictureBox6.TabIndex = 4;
- this.pictureBox6.TabStop = false;
- //
// AllowLR
//
this.AllowLR.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -1346,19 +1363,12 @@
this.TI83ControllerPanel.Size = new System.Drawing.Size(567, 404);
this.TI83ControllerPanel.TabIndex = 1;
//
- // pictureBox7
+ // NESConsoleButtons
//
- this.pictureBox7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.pictureBox7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.pictureBox7.Image = global::BizHawk.MultiClient.Properties.Resources.TI83_Controller;
- this.pictureBox7.Location = new System.Drawing.Point(593, 18);
- this.pictureBox7.Name = "pictureBox7";
- this.pictureBox7.Size = new System.Drawing.Size(186, 273);
- this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.pictureBox7.TabIndex = 4;
- this.pictureBox7.TabStop = false;
+ this.NESConsoleButtons.Location = new System.Drawing.Point(30, 25);
+ this.NESConsoleButtons.Name = "NESConsoleButtons";
+ this.NESConsoleButtons.Size = new System.Drawing.Size(100, 20);
+ this.NESConsoleButtons.TabIndex = 0;
//
// ControllerConfig
//
@@ -1383,6 +1393,8 @@
this.tabPage14.ResumeLayout(false);
this.tabPage15.ResumeLayout(false);
this.tabPage16.ResumeLayout(false);
+ this.tabPage17.ResumeLayout(false);
+ this.tabPage17.PerformLayout();
this.tabPage18.ResumeLayout(false);
this.tabPage19.ResumeLayout(false);
this.tabPage20.ResumeLayout(false);
@@ -1404,6 +1416,7 @@
this.tabPage31.ResumeLayout(false);
this.tabPage32.ResumeLayout(false);
this.tabPage9.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
this.tabControl9.ResumeLayout(false);
this.tabPage52.ResumeLayout(false);
this.tabPage55.ResumeLayout(false);
@@ -1437,7 +1450,6 @@
this.tabPage7.ResumeLayout(false);
this.tabControl8.ResumeLayout(false);
this.tabPage8.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -1562,5 +1574,6 @@
private System.Windows.Forms.CheckBox AllowLR;
private ControllerConfigPanel TI83ControllerPanel;
private System.Windows.Forms.PictureBox pictureBox7;
+ private BizHawk.MultiClient.ControllerConfigPanel NESConsoleButtons;
}
}
\ No newline at end of file
diff --git a/BizHawk.MultiClient/config/ControllerConfig.cs b/BizHawk.MultiClient/config/ControllerConfig.cs
index 7edc9d063d..3d34f7a0ea 100644
--- a/BizHawk.MultiClient/config/ControllerConfig.cs
+++ b/BizHawk.MultiClient/config/ControllerConfig.cs
@@ -68,6 +68,7 @@ namespace BizHawk.MultiClient
Atari2600Autofire2Panel.LoadSettings(Global.Config.Atari2600AutoController[1]);
TI83ControllerPanel.LoadSettings(Global.Config.TI83Controller[0]);
+ NESConsoleButtons.LoadSettings(Global.Config.NESConsoleButtons);
SetAutoTab(true);
}
diff --git a/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.Designer.cs b/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.Designer.cs
deleted file mode 100644
index 6b7221f008..0000000000
--- a/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.Designer.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-namespace BizHawk.MultiClient
-{
- partial class ButtonListConfigPanel
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // ButtonListConfigPanel
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Name = "ButtonListConfigPanel";
- this.Load += new System.EventHandler(this.ButtonListConfigPanel_Load);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
diff --git a/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.cs b/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.cs
deleted file mode 100644
index 1260e33ad0..0000000000
--- a/BizHawk.MultiClient/config/ControllerConfig/ButtonListConfigPanel.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.Reflection;
-
-namespace BizHawk.MultiClient
-{
- public partial class ButtonListConfigPanel : UserControl
- {
- List