diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs index b7a762399d..3e99d116fb 100644 --- a/BizHawk.MultiClient/Config.cs +++ b/BizHawk.MultiClient/Config.cs @@ -737,6 +737,10 @@ namespace BizHawk.MultiClient { public string Reset = ""; public string Power = ""; + public string FDS_Eject = ""; + public string FDS_Insert = ""; + public string VS_Coin_1 = ""; + public string VS_Coin_2 = ""; } public class SMSConsoleButtonTemplate diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index afc883c638..7ca46ad942 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -849,6 +849,9 @@ namespace BizHawk.MultiClient nesControls.BindMulti("Reset", Global.Config.NESConsoleButtons.Reset); nesControls.BindMulti("Power", Global.Config.NESConsoleButtons.Power); + nesControls.BindMulti("FDS Eject", Global.Config.NESConsoleButtons.FDS_Eject); + nesControls.BindMulti("VS Coin 1", Global.Config.NESConsoleButtons.VS_Coin_1); + nesControls.BindMulti("VS Coin 2", Global.Config.NESConsoleButtons.VS_Coin_2); Global.NESControls = nesControls; diff --git a/BizHawk.MultiClient/config/ControllerConfig.Designer.cs b/BizHawk.MultiClient/config/ControllerConfig.Designer.cs index b879fada41..36f6c669bc 100644 --- a/BizHawk.MultiClient/config/ControllerConfig.Designer.cs +++ b/BizHawk.MultiClient/config/ControllerConfig.Designer.cs @@ -99,6 +99,8 @@ this.tabControl8 = new System.Windows.Forms.TabControl(); this.tabPage49 = new System.Windows.Forms.TabPage(); this.tabPage50 = new System.Windows.Forms.TabPage(); + this.tabPage10 = new System.Windows.Forms.TabPage(); + this.tabPage11 = 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(); @@ -148,13 +150,11 @@ this.Atari2600ConsoleButtons = new BizHawk.MultiClient.ControllerConfigPanel(); this.Atari2600Autofire1Panel = new BizHawk.MultiClient.ControllerConfigPanel(); this.Atari2600Autofire2Panel = new BizHawk.MultiClient.ControllerConfigPanel(); - this.TI83ControllerPanel = new BizHawk.MultiClient.ControllerConfigPanel(); - this.tabPage10 = new System.Windows.Forms.TabPage(); - this.tabPage11 = new System.Windows.Forms.TabPage(); this.C64Controller1Panel = new BizHawk.MultiClient.ControllerConfigPanel(); this.C64Controller2Panel = new BizHawk.MultiClient.ControllerConfigPanel(); this.C64Autofire1Panel = new BizHawk.MultiClient.ControllerConfigPanel(); this.C64Autofire2Panel = new BizHawk.MultiClient.ControllerConfigPanel(); + this.TI83ControllerPanel = new BizHawk.MultiClient.ControllerConfigPanel(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ControllerImage)).BeginInit(); @@ -224,10 +224,10 @@ this.tabControl8.SuspendLayout(); this.tabPage49.SuspendLayout(); this.tabPage50.SuspendLayout(); - this.tabPage8.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); this.tabPage10.SuspendLayout(); this.tabPage11.SuspendLayout(); + this.tabPage8.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); this.SuspendLayout(); // // tabControl1 @@ -1045,6 +1045,26 @@ this.tabPage50.Text = "Joy 2"; this.tabPage50.UseVisualStyleBackColor = true; // + // tabPage10 + // + this.tabPage10.Controls.Add(this.C64Autofire1Panel); + this.tabPage10.Location = new System.Drawing.Point(4, 22); + this.tabPage10.Name = "tabPage10"; + this.tabPage10.Size = new System.Drawing.Size(532, 361); + this.tabPage10.TabIndex = 2; + this.tabPage10.Text = "Autojoy 1"; + this.tabPage10.UseVisualStyleBackColor = true; + // + // tabPage11 + // + this.tabPage11.Controls.Add(this.C64Autofire2Panel); + this.tabPage11.Location = new System.Drawing.Point(4, 22); + this.tabPage11.Name = "tabPage11"; + this.tabPage11.Size = new System.Drawing.Size(532, 361); + this.tabPage11.TabIndex = 3; + this.tabPage11.Text = "Autojoy 2"; + this.tabPage11.UseVisualStyleBackColor = true; + // // tabPage8 // this.tabPage8.Controls.Add(this.pictureBox7); @@ -1145,7 +1165,7 @@ // this.NESConsoleButtons.Location = new System.Drawing.Point(13, 12); this.NESConsoleButtons.Name = "NESConsoleButtons"; - this.NESConsoleButtons.Size = new System.Drawing.Size(368, 125); + this.NESConsoleButtons.Size = new System.Drawing.Size(368, 341); this.NESConsoleButtons.TabIndex = 0; // // NESAutofire1Panel @@ -1414,36 +1434,6 @@ this.Atari2600Autofire2Panel.Size = new System.Drawing.Size(369, 332); this.Atari2600Autofire2Panel.TabIndex = 3; // - // TI83ControllerPanel - // - this.TI83ControllerPanel.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.TI83ControllerPanel.Location = new System.Drawing.Point(11, 8); - this.TI83ControllerPanel.Name = "TI83ControllerPanel"; - this.TI83ControllerPanel.Size = new System.Drawing.Size(567, 414); - this.TI83ControllerPanel.TabIndex = 1; - // - // tabPage10 - // - this.tabPage10.Controls.Add(this.C64Autofire1Panel); - this.tabPage10.Location = new System.Drawing.Point(4, 22); - this.tabPage10.Name = "tabPage10"; - this.tabPage10.Size = new System.Drawing.Size(532, 361); - this.tabPage10.TabIndex = 2; - this.tabPage10.Text = "Autojoy 1"; - this.tabPage10.UseVisualStyleBackColor = true; - // - // tabPage11 - // - this.tabPage11.Controls.Add(this.C64Autofire2Panel); - this.tabPage11.Location = new System.Drawing.Point(4, 22); - this.tabPage11.Name = "tabPage11"; - this.tabPage11.Size = new System.Drawing.Size(532, 361); - this.tabPage11.TabIndex = 3; - this.tabPage11.Text = "Autojoy 2"; - this.tabPage11.UseVisualStyleBackColor = true; - // // C64Controller1Panel // this.C64Controller1Panel.Location = new System.Drawing.Point(6, 6); @@ -1472,6 +1462,16 @@ this.C64Autofire2Panel.Size = new System.Drawing.Size(369, 332); this.C64Autofire2Panel.TabIndex = 4; // + // TI83ControllerPanel + // + this.TI83ControllerPanel.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.TI83ControllerPanel.Location = new System.Drawing.Point(11, 8); + this.TI83ControllerPanel.Name = "TI83ControllerPanel"; + this.TI83ControllerPanel.Size = new System.Drawing.Size(567, 414); + this.TI83ControllerPanel.TabIndex = 1; + // // ControllerConfig // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1556,10 +1556,10 @@ this.tabControl8.ResumeLayout(false); this.tabPage49.ResumeLayout(false); this.tabPage50.ResumeLayout(false); - this.tabPage8.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); this.tabPage10.ResumeLayout(false); this.tabPage11.ResumeLayout(false); + this.tabPage8.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/BizHawk.MultiClient/config/ControllerConfig.cs b/BizHawk.MultiClient/config/ControllerConfig.cs index 31bdaf72fe..89a9c391d7 100644 --- a/BizHawk.MultiClient/config/ControllerConfig.cs +++ b/BizHawk.MultiClient/config/ControllerConfig.cs @@ -84,6 +84,7 @@ namespace BizHawk.MultiClient TI83ControllerPanel.InputSize = 110; TI83ControllerPanel.LabelPadding = 5; TI83ControllerPanel.ColumnWidth = 170; + TI83ControllerPanel.LabelWidth = 50; TI83ControllerPanel.LoadSettings(Global.Config.TI83Controller[0]); C64Controller1Panel.LoadSettings(Global.Config.C64Joysticks[0]); diff --git a/BizHawk.MultiClient/config/ControllerConfig/ControllerConfigPanel.cs b/BizHawk.MultiClient/config/ControllerConfig/ControllerConfigPanel.cs index 261d45e230..1ae99b1723 100644 --- a/BizHawk.MultiClient/config/ControllerConfig/ControllerConfigPanel.cs +++ b/BizHawk.MultiClient/config/ControllerConfig/ControllerConfigPanel.cs @@ -23,6 +23,7 @@ namespace BizHawk.MultiClient public int Spacing = 30; public int InputSize = 200; public int ColumnWidth = 220; + public int LabelWidth = 100; protected List Inputs = new List(); protected List