diff --git a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj index a507341f44..e87013b771 100644 --- a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj +++ b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj @@ -884,6 +884,7 @@ + UserControl diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs deleted file mode 100644 index 3261587c1f..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System.Drawing; -using System.Windows.Forms; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPad : Panel , IVirtualPad - { - - public Point[] ButtonPoints = new Point[16]; - - - public CheckBox PU; - public CheckBox PD; - public CheckBox PL; - public CheckBox PR; - public CheckBox B1; - public CheckBox B2; - public CheckBox B3; - public CheckBox B4; - public CheckBox B5; - public CheckBox B6; - public CheckBox B7; - public CheckBox B8; - public string Controller { get; set; } - - public VirtualPad() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Size = new Size(174, 74); - Controller = "P1"; - } - - public virtual string GetMnemonic() - { - return "......|"; - } - - public virtual void Clear() - { - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - B5.Checked = false; - B6.Checked = false; - B7.Checked = false; - B8.Checked = false; - } - - public virtual void SetButtons(string buttons) - { - - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.resx deleted file mode 100644 index 3276f5c015..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPad.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26.cs deleted file mode 100644 index 60cde4a4a0..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26.cs +++ /dev/null @@ -1,181 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - class VirtualPadA26 : VirtualPad - { - public VirtualPadA26() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(122, 24); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += this.Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - - return true; - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PR.Checked ? "U" : "."); - input.Append(PL.Checked ? "D" : "."); - input.Append(PD.Checked ? "L" : "."); - input.Append(PU.Checked ? "R" : "."); - - input.Append(B1.Checked ? "B" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 5) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "A26" && Global.Emulator.SystemId != "C64") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky(Controller + " Button", B1.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "A26" && Global.Emulator.SystemId != "C64") return; - - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26Control.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26Control.cs deleted file mode 100644 index adde6f6a51..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA26Control.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - class VirtualPadA26Control : VirtualPad - { - public VirtualPadA26Control() - { - ButtonPoints[0] = new Point(2, 2); - ButtonPoints[1] = new Point(56, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Reset", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[1], - TabIndex = 6, - Text = "Select", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - B2.ForeColor = Color.Red; - - Controls.Add(B1); - Controls.Add(B2); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B1.Checked ? "r" : "."); - input.Append(B2.Checked ? "s" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 2) return; - if (buttons[0] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[1] == '.') B2.Checked = false; else B2.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "A26") return; - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Reset", B1.Checked); - if (B1.Checked) - { - B1.BackColor = Color.Pink; - } - else - { - B1.BackColor = SystemColors.Control; - } - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Select", B2.Checked); - if (B2.Checked) - { - B2.BackColor = Color.Pink; - } - else - { - B2.BackColor = SystemColors.Control; - } - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "A26") return; - - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Reset", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Pause", false); - - B1.Checked = false; - B2.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.Designer.cs deleted file mode 100644 index 34f7df88fe..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.Designer.cs +++ /dev/null @@ -1,137 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadA78 - { - /// - /// 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.PL = new System.Windows.Forms.CheckBox(); - this.PD = new System.Windows.Forms.CheckBox(); - this.PR = new System.Windows.Forms.CheckBox(); - this.PU = new System.Windows.Forms.CheckBox(); - this.B2 = new System.Windows.Forms.CheckBox(); - this.B1 = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(32, 19); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 7; - this.PL.UseVisualStyleBackColor = true; - this.PL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(53, 28); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 6; - this.PD.UseVisualStyleBackColor = true; - this.PD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(74, 19); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 5; - this.PR.UseVisualStyleBackColor = true; - this.PR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(53, 7); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 4; - this.PU.UseVisualStyleBackColor = true; - this.PU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B2 - // - this.B2.Appearance = System.Windows.Forms.Appearance.Button; - this.B2.AutoSize = true; - this.B2.Location = new System.Drawing.Point(93, 57); - this.B2.Name = "B2"; - this.B2.Size = new System.Drawing.Size(23, 23); - this.B2.TabIndex = 9; - this.B2.Text = "2"; - this.B2.UseVisualStyleBackColor = true; - this.B2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B1 - // - this.B1.Appearance = System.Windows.Forms.Appearance.Button; - this.B1.AutoSize = true; - this.B1.Location = new System.Drawing.Point(10, 57); - this.B1.Name = "B1"; - this.B1.Size = new System.Drawing.Size(23, 23); - this.B1.TabIndex = 8; - this.B1.Text = "1"; - this.B1.UseVisualStyleBackColor = true; - this.B1.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadA78 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.B2); - this.Controls.Add(this.B1); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Name = "VirtualPadA78"; - this.Size = new System.Drawing.Size(128, 89); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox PL; - private System.Windows.Forms.CheckBox PD; - private System.Windows.Forms.CheckBox PR; - private System.Windows.Forms.CheckBox PU; - private System.Windows.Forms.CheckBox B2; - private System.Windows.Forms.CheckBox B1; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.cs deleted file mode 100644 index bd0c242dfc..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.cs +++ /dev/null @@ -1,129 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadA78 : UserControl, IVirtualPad - { - public string Controller { get; set; } - - public VirtualPadA78() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - InitializeComponent(); - - Controller = "P1"; - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "1" : "."); - input.Append(B2.Checked ? "2" : "."); - input.Append("|"); - return input.ToString(); - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 6) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "A78") - { - return; - } - else if (sender == PU) - { - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky(Controller + " Trigger", B1.Checked); - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky(Controller + " Trigger 2", B2.Checked); - } - } - - public void Clear() - { - if (Global.Emulator.SystemId != "A78") return; - - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Trigger", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Trigger 2", false); - - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - B1.Checked = false; - B2.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.Designer.cs deleted file mode 100644 index 33b315673e..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.Designer.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadA78Control - { - /// - /// 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.B2 = new System.Windows.Forms.CheckBox(); - this.B1 = new System.Windows.Forms.CheckBox(); - this.B4 = new System.Windows.Forms.CheckBox(); - this.B3 = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // B2 - // - this.B2.Appearance = System.Windows.Forms.Appearance.Button; - this.B2.AutoSize = true; - this.B2.Location = new System.Drawing.Point(56, 5); - this.B2.Name = "B2"; - this.B2.Size = new System.Drawing.Size(45, 23); - this.B2.TabIndex = 11; - this.B2.Text = "Reset"; - this.B2.UseVisualStyleBackColor = true; - this.B2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B1 - // - this.B1.Appearance = System.Windows.Forms.Appearance.Button; - this.B1.AutoSize = true; - this.B1.Location = new System.Drawing.Point(3, 5); - this.B1.Name = "B1"; - this.B1.Size = new System.Drawing.Size(47, 23); - this.B1.TabIndex = 10; - this.B1.Text = "Power"; - this.B1.UseVisualStyleBackColor = true; - this.B1.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B4 - // - this.B4.Appearance = System.Windows.Forms.Appearance.Button; - this.B4.AutoSize = true; - this.B4.Location = new System.Drawing.Point(160, 5); - this.B4.Name = "B4"; - this.B4.Size = new System.Drawing.Size(47, 23); - this.B4.TabIndex = 13; - this.B4.Text = "Pause"; - this.B4.UseVisualStyleBackColor = true; - this.B4.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B3 - // - this.B3.Appearance = System.Windows.Forms.Appearance.Button; - this.B3.AutoSize = true; - this.B3.Location = new System.Drawing.Point(107, 5); - this.B3.Name = "B3"; - this.B3.Size = new System.Drawing.Size(47, 23); - this.B3.TabIndex = 12; - this.B3.Text = "Select"; - this.B3.UseVisualStyleBackColor = true; - this.B3.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadA78Control - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.B4); - this.Controls.Add(this.B3); - this.Controls.Add(this.B2); - this.Controls.Add(this.B1); - this.Name = "VirtualPadA78Control"; - this.Size = new System.Drawing.Size(217, 34); - this.Load += new System.EventHandler(this.VirtualPadA78Control_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox B2; - private System.Windows.Forms.CheckBox B1; - private System.Windows.Forms.CheckBox B4; - private System.Windows.Forms.CheckBox B3; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.cs deleted file mode 100644 index 2866e9512e..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadA78Control : UserControl, IVirtualPad - { - public string Controller { get; set; } - public VirtualPadA78Control() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - InitializeComponent(); - - Controller = string.Empty; - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B1.Checked ? "P" : "."); - input.Append(B2.Checked ? "r" : "."); - input.Append(B3.Checked ? "s" : "."); - input.Append(B4.Checked ? "p" : "."); - input.Append("|"); - return input.ToString(); - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 4) return; - if (buttons[0] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[1] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[2] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[3] == '.') B4.Checked = false; else B4.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "A78") - { - return; - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - } - else if (sender == B3) - { - Global.StickyXORAdapter.SetSticky("Select", B3.Checked); - } - else if (sender == B4) - { - Global.StickyXORAdapter.SetSticky("Pause", B4.Checked); - } - } - - public void Clear() - { - if (Global.Emulator.SystemId != "A78") return; - - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Power", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Reset", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky("Select", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky("Pause", false); - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - } - - private void VirtualPadA78Control_Load(object sender, EventArgs e) - { - - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadA78Control.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.Designer.cs deleted file mode 100644 index 69f47e3f10..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.Designer.cs +++ /dev/null @@ -1,1169 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadC64Keyboard - { - /// - /// 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.K1 = new System.Windows.Forms.CheckBox(); - this.K2 = new System.Windows.Forms.CheckBox(); - this.K4 = new System.Windows.Forms.CheckBox(); - this.K3 = new System.Windows.Forms.CheckBox(); - this.K8 = new System.Windows.Forms.CheckBox(); - this.K7 = new System.Windows.Forms.CheckBox(); - this.K6 = new System.Windows.Forms.CheckBox(); - this.K5 = new System.Windows.Forms.CheckBox(); - this.K9 = new System.Windows.Forms.CheckBox(); - this.K0 = new System.Windows.Forms.CheckBox(); - this.KPlus = new System.Windows.Forms.CheckBox(); - this.KMinus = new System.Windows.Forms.CheckBox(); - this.KPound = new System.Windows.Forms.CheckBox(); - this.KClear = new System.Windows.Forms.CheckBox(); - this.KInsert = new System.Windows.Forms.CheckBox(); - this.KF1 = new System.Windows.Forms.CheckBox(); - this.KF3 = new System.Windows.Forms.CheckBox(); - this.KF7 = new System.Windows.Forms.CheckBox(); - this.KF5 = new System.Windows.Forms.CheckBox(); - this.KCtrl = new System.Windows.Forms.CheckBox(); - this.KP = new System.Windows.Forms.CheckBox(); - this.KO = new System.Windows.Forms.CheckBox(); - this.KI = new System.Windows.Forms.CheckBox(); - this.KU = new System.Windows.Forms.CheckBox(); - this.KY = new System.Windows.Forms.CheckBox(); - this.KT = new System.Windows.Forms.CheckBox(); - this.KR = new System.Windows.Forms.CheckBox(); - this.KE = new System.Windows.Forms.CheckBox(); - this.KW = new System.Windows.Forms.CheckBox(); - this.KQ = new System.Windows.Forms.CheckBox(); - this.KAt = new System.Windows.Forms.CheckBox(); - this.KAsterisk = new System.Windows.Forms.CheckBox(); - this.KRST = new System.Windows.Forms.CheckBox(); - this.KRun = new System.Windows.Forms.CheckBox(); - this.KLck = new System.Windows.Forms.CheckBox(); - this.KK = new System.Windows.Forms.CheckBox(); - this.KJ = new System.Windows.Forms.CheckBox(); - this.KH = new System.Windows.Forms.CheckBox(); - this.KG = new System.Windows.Forms.CheckBox(); - this.KF = new System.Windows.Forms.CheckBox(); - this.KD = new System.Windows.Forms.CheckBox(); - this.KS = new System.Windows.Forms.CheckBox(); - this.KA = new System.Windows.Forms.CheckBox(); - this.KL = new System.Windows.Forms.CheckBox(); - this.KColon = new System.Windows.Forms.CheckBox(); - this.KSemicolon = new System.Windows.Forms.CheckBox(); - this.KEquals = new System.Windows.Forms.CheckBox(); - this.KReturn = new System.Windows.Forms.CheckBox(); - this.KCommodore = new System.Windows.Forms.CheckBox(); - this.KLeftShift = new System.Windows.Forms.CheckBox(); - this.KRightShift = new System.Windows.Forms.CheckBox(); - this.KSlash = new System.Windows.Forms.CheckBox(); - this.KPeriod = new System.Windows.Forms.CheckBox(); - this.KComma = new System.Windows.Forms.CheckBox(); - this.KM = new System.Windows.Forms.CheckBox(); - this.KN = new System.Windows.Forms.CheckBox(); - this.KB = new System.Windows.Forms.CheckBox(); - this.KV = new System.Windows.Forms.CheckBox(); - this.KC = new System.Windows.Forms.CheckBox(); - this.KX = new System.Windows.Forms.CheckBox(); - this.KZ = new System.Windows.Forms.CheckBox(); - this.KCursorUp = new System.Windows.Forms.CheckBox(); - this.KCursorLeft = new System.Windows.Forms.CheckBox(); - this.KSpace = new System.Windows.Forms.CheckBox(); - this.KUpArrow = new System.Windows.Forms.CheckBox(); - this.KLeftArrow = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // K1 - // - this.K1.Appearance = System.Windows.Forms.Appearance.Button; - this.K1.AutoSize = true; - this.K1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K1.Location = new System.Drawing.Point(38, 10); - this.K1.Name = "K1"; - this.K1.Size = new System.Drawing.Size(24, 24); - this.K1.TabIndex = 1; - this.K1.Text = "1"; - this.K1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K1.UseVisualStyleBackColor = true; - this.K1.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K2 - // - this.K2.Appearance = System.Windows.Forms.Appearance.Button; - this.K2.AutoSize = true; - this.K2.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K2.Location = new System.Drawing.Point(60, 10); - this.K2.Name = "K2"; - this.K2.Size = new System.Drawing.Size(24, 24); - this.K2.TabIndex = 2; - this.K2.Text = "2"; - this.K2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K2.UseVisualStyleBackColor = true; - this.K2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K4 - // - this.K4.Appearance = System.Windows.Forms.Appearance.Button; - this.K4.AutoSize = true; - this.K4.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K4.Location = new System.Drawing.Point(103, 10); - this.K4.Name = "K4"; - this.K4.Size = new System.Drawing.Size(24, 24); - this.K4.TabIndex = 4; - this.K4.Text = "4"; - this.K4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K4.UseVisualStyleBackColor = true; - this.K4.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K3 - // - this.K3.Appearance = System.Windows.Forms.Appearance.Button; - this.K3.AutoSize = true; - this.K3.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K3.Location = new System.Drawing.Point(81, 10); - this.K3.Name = "K3"; - this.K3.Size = new System.Drawing.Size(24, 24); - this.K3.TabIndex = 3; - this.K3.Text = "3"; - this.K3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K3.UseVisualStyleBackColor = true; - this.K3.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K8 - // - this.K8.Appearance = System.Windows.Forms.Appearance.Button; - this.K8.AutoSize = true; - this.K8.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K8.Location = new System.Drawing.Point(191, 10); - this.K8.Name = "K8"; - this.K8.Size = new System.Drawing.Size(24, 24); - this.K8.TabIndex = 8; - this.K8.Text = "8"; - this.K8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K8.UseVisualStyleBackColor = true; - this.K8.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K7 - // - this.K7.Appearance = System.Windows.Forms.Appearance.Button; - this.K7.AutoSize = true; - this.K7.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K7.Location = new System.Drawing.Point(169, 10); - this.K7.Name = "K7"; - this.K7.Size = new System.Drawing.Size(24, 24); - this.K7.TabIndex = 7; - this.K7.Text = "7"; - this.K7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K7.UseVisualStyleBackColor = true; - this.K7.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K6 - // - this.K6.Appearance = System.Windows.Forms.Appearance.Button; - this.K6.AutoSize = true; - this.K6.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K6.Location = new System.Drawing.Point(147, 10); - this.K6.Name = "K6"; - this.K6.Size = new System.Drawing.Size(24, 24); - this.K6.TabIndex = 6; - this.K6.Text = "6"; - this.K6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K6.UseVisualStyleBackColor = true; - this.K6.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K5 - // - this.K5.Appearance = System.Windows.Forms.Appearance.Button; - this.K5.AutoSize = true; - this.K5.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K5.Location = new System.Drawing.Point(125, 10); - this.K5.Name = "K5"; - this.K5.Size = new System.Drawing.Size(24, 24); - this.K5.TabIndex = 5; - this.K5.Text = "5"; - this.K5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K5.UseVisualStyleBackColor = true; - this.K5.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K9 - // - this.K9.Appearance = System.Windows.Forms.Appearance.Button; - this.K9.AutoSize = true; - this.K9.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K9.Location = new System.Drawing.Point(213, 10); - this.K9.Name = "K9"; - this.K9.Size = new System.Drawing.Size(24, 24); - this.K9.TabIndex = 9; - this.K9.Text = "9"; - this.K9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K9.UseVisualStyleBackColor = true; - this.K9.CheckStateChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // K0 - // - this.K0.Appearance = System.Windows.Forms.Appearance.Button; - this.K0.AutoSize = true; - this.K0.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.K0.Location = new System.Drawing.Point(235, 10); - this.K0.Name = "K0"; - this.K0.Size = new System.Drawing.Size(24, 24); - this.K0.TabIndex = 10; - this.K0.Text = "0"; - this.K0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.K0.UseVisualStyleBackColor = true; - this.K0.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KPlus - // - this.KPlus.Appearance = System.Windows.Forms.Appearance.Button; - this.KPlus.AutoSize = true; - this.KPlus.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KPlus.Location = new System.Drawing.Point(257, 10); - this.KPlus.Name = "KPlus"; - this.KPlus.Size = new System.Drawing.Size(24, 24); - this.KPlus.TabIndex = 11; - this.KPlus.Text = "+"; - this.KPlus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KPlus.UseVisualStyleBackColor = true; - this.KPlus.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KMinus - // - this.KMinus.Appearance = System.Windows.Forms.Appearance.Button; - this.KMinus.AutoSize = true; - this.KMinus.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KMinus.Location = new System.Drawing.Point(279, 10); - this.KMinus.Name = "KMinus"; - this.KMinus.Size = new System.Drawing.Size(24, 24); - this.KMinus.TabIndex = 12; - this.KMinus.Text = "-"; - this.KMinus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KMinus.UseVisualStyleBackColor = true; - this.KMinus.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KPound - // - this.KPound.Appearance = System.Windows.Forms.Appearance.Button; - this.KPound.AutoSize = true; - this.KPound.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KPound.Location = new System.Drawing.Point(301, 10); - this.KPound.Name = "KPound"; - this.KPound.Size = new System.Drawing.Size(24, 24); - this.KPound.TabIndex = 13; - this.KPound.Text = "£"; - this.KPound.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KPound.UseVisualStyleBackColor = true; - this.KPound.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KClear - // - this.KClear.Appearance = System.Windows.Forms.Appearance.Button; - this.KClear.AutoSize = true; - this.KClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KClear.Location = new System.Drawing.Point(323, 10); - this.KClear.Name = "KClear"; - this.KClear.Size = new System.Drawing.Size(37, 23); - this.KClear.TabIndex = 14; - this.KClear.Text = "C/H"; - this.KClear.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KClear.UseVisualStyleBackColor = true; - this.KClear.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KInsert - // - this.KInsert.Appearance = System.Windows.Forms.Appearance.Button; - this.KInsert.AutoSize = true; - this.KInsert.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KInsert.Location = new System.Drawing.Point(356, 10); - this.KInsert.Name = "KInsert"; - this.KInsert.Size = new System.Drawing.Size(33, 23); - this.KInsert.TabIndex = 15; - this.KInsert.Text = "I/D"; - this.KInsert.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KInsert.UseVisualStyleBackColor = true; - this.KInsert.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KF1 - // - this.KF1.Appearance = System.Windows.Forms.Appearance.Button; - this.KF1.AutoSize = true; - this.KF1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KF1.Location = new System.Drawing.Point(410, 10); - this.KF1.Name = "KF1"; - this.KF1.Size = new System.Drawing.Size(38, 24); - this.KF1.TabIndex = 16; - this.KF1.Text = "f 1"; - this.KF1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KF1.UseVisualStyleBackColor = true; - this.KF1.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KF3 - // - this.KF3.Appearance = System.Windows.Forms.Appearance.Button; - this.KF3.AutoSize = true; - this.KF3.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KF3.Location = new System.Drawing.Point(410, 33); - this.KF3.Name = "KF3"; - this.KF3.Size = new System.Drawing.Size(38, 24); - this.KF3.TabIndex = 17; - this.KF3.Text = "f 3"; - this.KF3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KF3.UseVisualStyleBackColor = true; - this.KF3.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KF7 - // - this.KF7.Appearance = System.Windows.Forms.Appearance.Button; - this.KF7.AutoSize = true; - this.KF7.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KF7.Location = new System.Drawing.Point(410, 79); - this.KF7.Name = "KF7"; - this.KF7.Size = new System.Drawing.Size(38, 24); - this.KF7.TabIndex = 19; - this.KF7.Text = "f 7"; - this.KF7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KF7.UseVisualStyleBackColor = true; - this.KF7.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KF5 - // - this.KF5.Appearance = System.Windows.Forms.Appearance.Button; - this.KF5.AutoSize = true; - this.KF5.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KF5.Location = new System.Drawing.Point(410, 56); - this.KF5.Name = "KF5"; - this.KF5.Size = new System.Drawing.Size(38, 24); - this.KF5.TabIndex = 18; - this.KF5.Text = "f 5"; - this.KF5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KF5.UseVisualStyleBackColor = true; - this.KF5.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KCtrl - // - this.KCtrl.Appearance = System.Windows.Forms.Appearance.Button; - this.KCtrl.AutoSize = true; - this.KCtrl.Location = new System.Drawing.Point(18, 33); - this.KCtrl.Name = "KCtrl"; - this.KCtrl.Size = new System.Drawing.Size(45, 23); - this.KCtrl.TabIndex = 20; - this.KCtrl.Text = "CTRL"; - this.KCtrl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KCtrl.UseVisualStyleBackColor = true; - this.KCtrl.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP - // - this.KP.Appearance = System.Windows.Forms.Appearance.Button; - this.KP.AutoSize = true; - this.KP.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KP.Location = new System.Drawing.Point(259, 33); - this.KP.Name = "KP"; - this.KP.Size = new System.Drawing.Size(24, 24); - this.KP.TabIndex = 30; - this.KP.Text = "P"; - this.KP.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KP.UseVisualStyleBackColor = true; - this.KP.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KO - // - this.KO.Appearance = System.Windows.Forms.Appearance.Button; - this.KO.AutoSize = true; - this.KO.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KO.Location = new System.Drawing.Point(237, 33); - this.KO.Name = "KO"; - this.KO.Size = new System.Drawing.Size(24, 24); - this.KO.TabIndex = 29; - this.KO.Text = "O"; - this.KO.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KO.UseVisualStyleBackColor = true; - this.KO.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KI - // - this.KI.Appearance = System.Windows.Forms.Appearance.Button; - this.KI.AutoSize = true; - this.KI.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KI.Location = new System.Drawing.Point(215, 33); - this.KI.Name = "KI"; - this.KI.Size = new System.Drawing.Size(24, 24); - this.KI.TabIndex = 28; - this.KI.Text = "I"; - this.KI.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KI.UseVisualStyleBackColor = true; - this.KI.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KU - // - this.KU.Appearance = System.Windows.Forms.Appearance.Button; - this.KU.AutoSize = true; - this.KU.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KU.Location = new System.Drawing.Point(193, 33); - this.KU.Name = "KU"; - this.KU.Size = new System.Drawing.Size(24, 24); - this.KU.TabIndex = 27; - this.KU.Text = "U"; - this.KU.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KU.UseVisualStyleBackColor = true; - this.KU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KY - // - this.KY.Appearance = System.Windows.Forms.Appearance.Button; - this.KY.AutoSize = true; - this.KY.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KY.Location = new System.Drawing.Point(171, 33); - this.KY.Name = "KY"; - this.KY.Size = new System.Drawing.Size(24, 24); - this.KY.TabIndex = 26; - this.KY.Text = "Y"; - this.KY.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KY.UseVisualStyleBackColor = true; - this.KY.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KT - // - this.KT.Appearance = System.Windows.Forms.Appearance.Button; - this.KT.AutoSize = true; - this.KT.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KT.Location = new System.Drawing.Point(149, 33); - this.KT.Name = "KT"; - this.KT.Size = new System.Drawing.Size(24, 24); - this.KT.TabIndex = 25; - this.KT.Text = "T"; - this.KT.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KT.UseVisualStyleBackColor = true; - this.KT.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KR - // - this.KR.Appearance = System.Windows.Forms.Appearance.Button; - this.KR.AutoSize = true; - this.KR.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KR.Location = new System.Drawing.Point(127, 33); - this.KR.Name = "KR"; - this.KR.Size = new System.Drawing.Size(24, 24); - this.KR.TabIndex = 24; - this.KR.Text = "R"; - this.KR.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KR.UseVisualStyleBackColor = true; - this.KR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KE - // - this.KE.Appearance = System.Windows.Forms.Appearance.Button; - this.KE.AutoSize = true; - this.KE.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KE.Location = new System.Drawing.Point(105, 33); - this.KE.Name = "KE"; - this.KE.Size = new System.Drawing.Size(24, 24); - this.KE.TabIndex = 23; - this.KE.Text = "E"; - this.KE.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KE.UseVisualStyleBackColor = true; - this.KE.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KW - // - this.KW.Appearance = System.Windows.Forms.Appearance.Button; - this.KW.AutoSize = true; - this.KW.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KW.Location = new System.Drawing.Point(83, 33); - this.KW.Name = "KW"; - this.KW.Size = new System.Drawing.Size(24, 24); - this.KW.TabIndex = 22; - this.KW.Text = "W"; - this.KW.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KW.UseVisualStyleBackColor = true; - this.KW.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KQ - // - this.KQ.Appearance = System.Windows.Forms.Appearance.Button; - this.KQ.AutoSize = true; - this.KQ.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KQ.Location = new System.Drawing.Point(61, 33); - this.KQ.Name = "KQ"; - this.KQ.Size = new System.Drawing.Size(24, 24); - this.KQ.TabIndex = 21; - this.KQ.Text = "Q"; - this.KQ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KQ.UseVisualStyleBackColor = true; - this.KQ.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KAt - // - this.KAt.Appearance = System.Windows.Forms.Appearance.Button; - this.KAt.AutoSize = true; - this.KAt.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KAt.Location = new System.Drawing.Point(281, 33); - this.KAt.Name = "KAt"; - this.KAt.Size = new System.Drawing.Size(24, 24); - this.KAt.TabIndex = 31; - this.KAt.Text = "@"; - this.KAt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KAt.UseVisualStyleBackColor = true; - this.KAt.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KAsterisk - // - this.KAsterisk.Appearance = System.Windows.Forms.Appearance.Button; - this.KAsterisk.AutoSize = true; - this.KAsterisk.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KAsterisk.Location = new System.Drawing.Point(303, 33); - this.KAsterisk.Name = "KAsterisk"; - this.KAsterisk.Size = new System.Drawing.Size(24, 24); - this.KAsterisk.TabIndex = 32; - this.KAsterisk.Text = "*"; - this.KAsterisk.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.KAsterisk.UseVisualStyleBackColor = true; - this.KAsterisk.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KRST - // - this.KRST.Appearance = System.Windows.Forms.Appearance.Button; - this.KRST.AutoSize = true; - this.KRST.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KRST.Location = new System.Drawing.Point(345, 33); - this.KRST.Name = "KRST"; - this.KRST.Size = new System.Drawing.Size(38, 24); - this.KRST.TabIndex = 34; - this.KRST.Text = "RST"; - this.KRST.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KRST.UseVisualStyleBackColor = true; - this.KRST.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KRun - // - this.KRun.Appearance = System.Windows.Forms.Appearance.Button; - this.KRun.AutoSize = true; - this.KRun.Font = new System.Drawing.Font("Times New Roman", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KRun.Location = new System.Drawing.Point(10, 56); - this.KRun.Name = "KRun"; - this.KRun.Size = new System.Drawing.Size(32, 24); - this.KRun.TabIndex = 35; - this.KRun.Text = "R/S"; - this.KRun.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KRun.UseVisualStyleBackColor = true; - this.KRun.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KLck - // - this.KLck.Appearance = System.Windows.Forms.Appearance.Button; - this.KLck.AutoSize = true; - this.KLck.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KLck.Location = new System.Drawing.Point(40, 56); - this.KLck.Name = "KLck"; - this.KLck.Size = new System.Drawing.Size(35, 23); - this.KLck.TabIndex = 36; - this.KLck.Text = "Lck"; - this.KLck.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KLck.UseVisualStyleBackColor = true; - this.KLck.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KK - // - this.KK.Appearance = System.Windows.Forms.Appearance.Button; - this.KK.AutoSize = true; - this.KK.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KK.Location = new System.Drawing.Point(227, 56); - this.KK.Name = "KK"; - this.KK.Size = new System.Drawing.Size(24, 24); - this.KK.TabIndex = 44; - this.KK.Text = "K"; - this.KK.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KK.UseVisualStyleBackColor = true; - this.KK.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KJ - // - this.KJ.Appearance = System.Windows.Forms.Appearance.Button; - this.KJ.AutoSize = true; - this.KJ.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KJ.Location = new System.Drawing.Point(205, 56); - this.KJ.Name = "KJ"; - this.KJ.Size = new System.Drawing.Size(24, 24); - this.KJ.TabIndex = 43; - this.KJ.Text = "J"; - this.KJ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KJ.UseVisualStyleBackColor = true; - this.KJ.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KH - // - this.KH.Appearance = System.Windows.Forms.Appearance.Button; - this.KH.AutoSize = true; - this.KH.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KH.Location = new System.Drawing.Point(183, 56); - this.KH.Name = "KH"; - this.KH.Size = new System.Drawing.Size(24, 24); - this.KH.TabIndex = 42; - this.KH.Text = "H"; - this.KH.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KH.UseVisualStyleBackColor = true; - this.KH.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KG - // - this.KG.Appearance = System.Windows.Forms.Appearance.Button; - this.KG.AutoSize = true; - this.KG.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KG.Location = new System.Drawing.Point(161, 56); - this.KG.Name = "KG"; - this.KG.Size = new System.Drawing.Size(24, 24); - this.KG.TabIndex = 41; - this.KG.Text = "G"; - this.KG.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KG.UseVisualStyleBackColor = true; - this.KG.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KF - // - this.KF.Appearance = System.Windows.Forms.Appearance.Button; - this.KF.AutoSize = true; - this.KF.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KF.Location = new System.Drawing.Point(139, 56); - this.KF.Name = "KF"; - this.KF.Size = new System.Drawing.Size(24, 24); - this.KF.TabIndex = 40; - this.KF.Text = "F"; - this.KF.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KF.UseVisualStyleBackColor = true; - this.KF.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KD - // - this.KD.Appearance = System.Windows.Forms.Appearance.Button; - this.KD.AutoSize = true; - this.KD.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KD.Location = new System.Drawing.Point(117, 56); - this.KD.Name = "KD"; - this.KD.Size = new System.Drawing.Size(24, 24); - this.KD.TabIndex = 39; - this.KD.Text = "D"; - this.KD.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KD.UseVisualStyleBackColor = true; - this.KD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KS - // - this.KS.Appearance = System.Windows.Forms.Appearance.Button; - this.KS.AutoSize = true; - this.KS.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KS.Location = new System.Drawing.Point(95, 56); - this.KS.Name = "KS"; - this.KS.Size = new System.Drawing.Size(24, 24); - this.KS.TabIndex = 38; - this.KS.Text = "S"; - this.KS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KS.UseVisualStyleBackColor = true; - this.KS.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KA - // - this.KA.Appearance = System.Windows.Forms.Appearance.Button; - this.KA.AutoSize = true; - this.KA.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KA.Location = new System.Drawing.Point(73, 56); - this.KA.Name = "KA"; - this.KA.Size = new System.Drawing.Size(24, 24); - this.KA.TabIndex = 37; - this.KA.Text = "A"; - this.KA.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KA.UseVisualStyleBackColor = true; - this.KA.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KL - // - this.KL.Appearance = System.Windows.Forms.Appearance.Button; - this.KL.AutoSize = true; - this.KL.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KL.Location = new System.Drawing.Point(249, 56); - this.KL.Name = "KL"; - this.KL.Size = new System.Drawing.Size(24, 24); - this.KL.TabIndex = 45; - this.KL.Text = "L"; - this.KL.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KL.UseVisualStyleBackColor = true; - this.KL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KColon - // - this.KColon.Appearance = System.Windows.Forms.Appearance.Button; - this.KColon.AutoSize = true; - this.KColon.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KColon.Location = new System.Drawing.Point(271, 56); - this.KColon.Name = "KColon"; - this.KColon.Size = new System.Drawing.Size(24, 24); - this.KColon.TabIndex = 46; - this.KColon.Text = ":"; - this.KColon.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KColon.UseVisualStyleBackColor = true; - this.KColon.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KSemicolon - // - this.KSemicolon.Appearance = System.Windows.Forms.Appearance.Button; - this.KSemicolon.AutoSize = true; - this.KSemicolon.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KSemicolon.Location = new System.Drawing.Point(293, 56); - this.KSemicolon.Name = "KSemicolon"; - this.KSemicolon.Size = new System.Drawing.Size(24, 24); - this.KSemicolon.TabIndex = 47; - this.KSemicolon.Text = ";"; - this.KSemicolon.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KSemicolon.UseVisualStyleBackColor = true; - this.KSemicolon.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KEquals - // - this.KEquals.Appearance = System.Windows.Forms.Appearance.Button; - this.KEquals.AutoSize = true; - this.KEquals.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KEquals.Location = new System.Drawing.Point(315, 56); - this.KEquals.Name = "KEquals"; - this.KEquals.Size = new System.Drawing.Size(24, 24); - this.KEquals.TabIndex = 48; - this.KEquals.Text = "="; - this.KEquals.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KEquals.UseVisualStyleBackColor = true; - this.KEquals.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KReturn - // - this.KReturn.Appearance = System.Windows.Forms.Appearance.Button; - this.KReturn.AutoSize = true; - this.KReturn.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KReturn.Location = new System.Drawing.Point(337, 56); - this.KReturn.Name = "KReturn"; - this.KReturn.Size = new System.Drawing.Size(49, 23); - this.KReturn.TabIndex = 49; - this.KReturn.Text = "Return"; - this.KReturn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KReturn.UseVisualStyleBackColor = true; - this.KReturn.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KCommodore - // - this.KCommodore.Appearance = System.Windows.Forms.Appearance.Button; - this.KCommodore.AutoSize = true; - this.KCommodore.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KCommodore.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.C64Symbol; - this.KCommodore.Location = new System.Drawing.Point(7, 79); - this.KCommodore.Name = "KCommodore"; - this.KCommodore.Size = new System.Drawing.Size(27, 24); - this.KCommodore.TabIndex = 50; - this.KCommodore.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KCommodore.UseVisualStyleBackColor = true; - this.KCommodore.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KLeftShift - // - this.KLeftShift.Appearance = System.Windows.Forms.Appearance.Button; - this.KLeftShift.AutoSize = true; - this.KLeftShift.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KLeftShift.Location = new System.Drawing.Point(32, 79); - this.KLeftShift.Name = "KLeftShift"; - this.KLeftShift.Size = new System.Drawing.Size(38, 23); - this.KLeftShift.TabIndex = 51; - this.KLeftShift.Text = "Shift"; - this.KLeftShift.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KLeftShift.UseVisualStyleBackColor = true; - this.KLeftShift.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KRightShift - // - this.KRightShift.Appearance = System.Windows.Forms.Appearance.Button; - this.KRightShift.AutoSize = true; - this.KRightShift.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KRightShift.Location = new System.Drawing.Point(288, 79); - this.KRightShift.Name = "KRightShift"; - this.KRightShift.Size = new System.Drawing.Size(38, 23); - this.KRightShift.TabIndex = 52; - this.KRightShift.Text = "Shift"; - this.KRightShift.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KRightShift.UseVisualStyleBackColor = true; - this.KRightShift.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KSlash - // - this.KSlash.Appearance = System.Windows.Forms.Appearance.Button; - this.KSlash.AutoSize = true; - this.KSlash.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KSlash.Location = new System.Drawing.Point(266, 79); - this.KSlash.Name = "KSlash"; - this.KSlash.Size = new System.Drawing.Size(24, 24); - this.KSlash.TabIndex = 62; - this.KSlash.Text = "/"; - this.KSlash.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KSlash.UseVisualStyleBackColor = true; - this.KSlash.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KPeriod - // - this.KPeriod.Appearance = System.Windows.Forms.Appearance.Button; - this.KPeriod.AutoSize = true; - this.KPeriod.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KPeriod.Location = new System.Drawing.Point(244, 79); - this.KPeriod.Name = "KPeriod"; - this.KPeriod.Size = new System.Drawing.Size(24, 24); - this.KPeriod.TabIndex = 61; - this.KPeriod.Text = "."; - this.KPeriod.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KPeriod.UseVisualStyleBackColor = true; - this.KPeriod.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KComma - // - this.KComma.Appearance = System.Windows.Forms.Appearance.Button; - this.KComma.AutoSize = true; - this.KComma.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KComma.Location = new System.Drawing.Point(222, 79); - this.KComma.Name = "KComma"; - this.KComma.Size = new System.Drawing.Size(24, 24); - this.KComma.TabIndex = 60; - this.KComma.Text = ","; - this.KComma.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KComma.UseVisualStyleBackColor = true; - this.KComma.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KM - // - this.KM.Appearance = System.Windows.Forms.Appearance.Button; - this.KM.AutoSize = true; - this.KM.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KM.Location = new System.Drawing.Point(200, 79); - this.KM.Name = "KM"; - this.KM.Size = new System.Drawing.Size(24, 24); - this.KM.TabIndex = 59; - this.KM.Text = "M"; - this.KM.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KM.UseVisualStyleBackColor = true; - this.KM.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KN - // - this.KN.Appearance = System.Windows.Forms.Appearance.Button; - this.KN.AutoSize = true; - this.KN.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KN.Location = new System.Drawing.Point(178, 79); - this.KN.Name = "KN"; - this.KN.Size = new System.Drawing.Size(24, 24); - this.KN.TabIndex = 58; - this.KN.Text = "N"; - this.KN.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KN.UseVisualStyleBackColor = true; - this.KN.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KB - // - this.KB.Appearance = System.Windows.Forms.Appearance.Button; - this.KB.AutoSize = true; - this.KB.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KB.Location = new System.Drawing.Point(156, 79); - this.KB.Name = "KB"; - this.KB.Size = new System.Drawing.Size(24, 24); - this.KB.TabIndex = 57; - this.KB.Text = "B"; - this.KB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KB.UseVisualStyleBackColor = true; - this.KB.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KV - // - this.KV.Appearance = System.Windows.Forms.Appearance.Button; - this.KV.AutoSize = true; - this.KV.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KV.Location = new System.Drawing.Point(134, 79); - this.KV.Name = "KV"; - this.KV.Size = new System.Drawing.Size(24, 24); - this.KV.TabIndex = 56; - this.KV.Text = "V"; - this.KV.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KV.UseVisualStyleBackColor = true; - this.KV.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KC - // - this.KC.Appearance = System.Windows.Forms.Appearance.Button; - this.KC.AutoSize = true; - this.KC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KC.Location = new System.Drawing.Point(112, 79); - this.KC.Name = "KC"; - this.KC.Size = new System.Drawing.Size(24, 24); - this.KC.TabIndex = 55; - this.KC.Text = "C"; - this.KC.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KC.UseVisualStyleBackColor = true; - this.KC.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KX - // - this.KX.Appearance = System.Windows.Forms.Appearance.Button; - this.KX.AutoSize = true; - this.KX.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KX.Location = new System.Drawing.Point(90, 79); - this.KX.Name = "KX"; - this.KX.Size = new System.Drawing.Size(24, 24); - this.KX.TabIndex = 54; - this.KX.Text = "X"; - this.KX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KX.UseVisualStyleBackColor = true; - this.KX.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KZ - // - this.KZ.Appearance = System.Windows.Forms.Appearance.Button; - this.KZ.AutoSize = true; - this.KZ.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KZ.Location = new System.Drawing.Point(68, 79); - this.KZ.Name = "KZ"; - this.KZ.Size = new System.Drawing.Size(24, 24); - this.KZ.TabIndex = 53; - this.KZ.Text = "Z"; - this.KZ.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KZ.UseVisualStyleBackColor = true; - this.KZ.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KCursorUp - // - this.KCursorUp.Appearance = System.Windows.Forms.Appearance.Button; - this.KCursorUp.AutoSize = true; - this.KCursorUp.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KCursorUp.Location = new System.Drawing.Point(324, 79); - this.KCursorUp.Name = "KCursorUp"; - this.KCursorUp.Size = new System.Drawing.Size(43, 23); - this.KCursorUp.TabIndex = 63; - this.KCursorUp.Text = "Csr U"; - this.KCursorUp.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KCursorUp.UseVisualStyleBackColor = true; - this.KCursorUp.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KCursorLeft - // - this.KCursorLeft.Appearance = System.Windows.Forms.Appearance.Button; - this.KCursorLeft.AutoSize = true; - this.KCursorLeft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KCursorLeft.Location = new System.Drawing.Point(365, 79); - this.KCursorLeft.Name = "KCursorLeft"; - this.KCursorLeft.Size = new System.Drawing.Size(41, 23); - this.KCursorLeft.TabIndex = 64; - this.KCursorLeft.Text = "Csr L"; - this.KCursorLeft.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KCursorLeft.UseVisualStyleBackColor = true; - this.KCursorLeft.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KSpace - // - this.KSpace.Appearance = System.Windows.Forms.Appearance.Button; - this.KSpace.AutoSize = true; - this.KSpace.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KSpace.Location = new System.Drawing.Point(77, 102); - this.KSpace.Name = "KSpace"; - this.KSpace.Size = new System.Drawing.Size(199, 24); - this.KSpace.TabIndex = 65; - this.KSpace.Text = " Space "; - this.KSpace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KSpace.UseVisualStyleBackColor = true; - this.KSpace.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KUpArrow - // - this.KUpArrow.Appearance = System.Windows.Forms.Appearance.Button; - this.KUpArrow.AutoSize = true; - this.KUpArrow.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KUpArrow.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.MoveUp; - this.KUpArrow.Location = new System.Drawing.Point(325, 33); - this.KUpArrow.Name = "KUpArrow"; - this.KUpArrow.Size = new System.Drawing.Size(22, 22); - this.KUpArrow.TabIndex = 33; - this.KUpArrow.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.KUpArrow.UseVisualStyleBackColor = true; - this.KUpArrow.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KLeftArrow - // - this.KLeftArrow.Appearance = System.Windows.Forms.Appearance.Button; - this.KLeftArrow.AutoSize = true; - this.KLeftArrow.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KLeftArrow.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.MoveLeft; - this.KLeftArrow.Location = new System.Drawing.Point(18, 10); - this.KLeftArrow.Name = "KLeftArrow"; - this.KLeftArrow.Size = new System.Drawing.Size(22, 22); - this.KLeftArrow.TabIndex = 0; - this.KLeftArrow.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.KLeftArrow.UseVisualStyleBackColor = true; - this.KLeftArrow.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadC64Keyboard - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.KSpace); - this.Controls.Add(this.KCursorLeft); - this.Controls.Add(this.KCursorUp); - this.Controls.Add(this.KSlash); - this.Controls.Add(this.KPeriod); - this.Controls.Add(this.KComma); - this.Controls.Add(this.KM); - this.Controls.Add(this.KN); - this.Controls.Add(this.KB); - this.Controls.Add(this.KV); - this.Controls.Add(this.KC); - this.Controls.Add(this.KX); - this.Controls.Add(this.KZ); - this.Controls.Add(this.KRightShift); - this.Controls.Add(this.KLeftShift); - this.Controls.Add(this.KCommodore); - this.Controls.Add(this.KReturn); - this.Controls.Add(this.KEquals); - this.Controls.Add(this.KSemicolon); - this.Controls.Add(this.KColon); - this.Controls.Add(this.KL); - this.Controls.Add(this.KK); - this.Controls.Add(this.KJ); - this.Controls.Add(this.KH); - this.Controls.Add(this.KG); - this.Controls.Add(this.KF); - this.Controls.Add(this.KD); - this.Controls.Add(this.KS); - this.Controls.Add(this.KA); - this.Controls.Add(this.KLck); - this.Controls.Add(this.KRun); - this.Controls.Add(this.KRST); - this.Controls.Add(this.KUpArrow); - this.Controls.Add(this.KAsterisk); - this.Controls.Add(this.KAt); - this.Controls.Add(this.KP); - this.Controls.Add(this.KO); - this.Controls.Add(this.KI); - this.Controls.Add(this.KU); - this.Controls.Add(this.KY); - this.Controls.Add(this.KT); - this.Controls.Add(this.KR); - this.Controls.Add(this.KE); - this.Controls.Add(this.KW); - this.Controls.Add(this.KQ); - this.Controls.Add(this.KCtrl); - this.Controls.Add(this.KF7); - this.Controls.Add(this.KF5); - this.Controls.Add(this.KF3); - this.Controls.Add(this.KF1); - this.Controls.Add(this.KInsert); - this.Controls.Add(this.KClear); - this.Controls.Add(this.KPound); - this.Controls.Add(this.KMinus); - this.Controls.Add(this.KPlus); - this.Controls.Add(this.K0); - this.Controls.Add(this.K9); - this.Controls.Add(this.K8); - this.Controls.Add(this.K7); - this.Controls.Add(this.K6); - this.Controls.Add(this.K5); - this.Controls.Add(this.K4); - this.Controls.Add(this.K3); - this.Controls.Add(this.K2); - this.Controls.Add(this.K1); - this.Controls.Add(this.KLeftArrow); - this.Name = "VirtualPadC64Keyboard"; - this.Size = new System.Drawing.Size(454, 134); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox KLeftArrow; - private System.Windows.Forms.CheckBox K1; - private System.Windows.Forms.CheckBox K2; - private System.Windows.Forms.CheckBox K4; - private System.Windows.Forms.CheckBox K3; - private System.Windows.Forms.CheckBox K8; - private System.Windows.Forms.CheckBox K7; - private System.Windows.Forms.CheckBox K6; - private System.Windows.Forms.CheckBox K5; - private System.Windows.Forms.CheckBox K9; - private System.Windows.Forms.CheckBox K0; - private System.Windows.Forms.CheckBox KPlus; - private System.Windows.Forms.CheckBox KMinus; - private System.Windows.Forms.CheckBox KPound; - private System.Windows.Forms.CheckBox KClear; - private System.Windows.Forms.CheckBox KInsert; - private System.Windows.Forms.CheckBox KF1; - private System.Windows.Forms.CheckBox KF3; - private System.Windows.Forms.CheckBox KF7; - private System.Windows.Forms.CheckBox KF5; - private System.Windows.Forms.CheckBox KCtrl; - private System.Windows.Forms.CheckBox KP; - private System.Windows.Forms.CheckBox KO; - private System.Windows.Forms.CheckBox KI; - private System.Windows.Forms.CheckBox KU; - private System.Windows.Forms.CheckBox KY; - private System.Windows.Forms.CheckBox KT; - private System.Windows.Forms.CheckBox KR; - private System.Windows.Forms.CheckBox KE; - private System.Windows.Forms.CheckBox KW; - private System.Windows.Forms.CheckBox KQ; - private System.Windows.Forms.CheckBox KAt; - private System.Windows.Forms.CheckBox KAsterisk; - private System.Windows.Forms.CheckBox KUpArrow; - private System.Windows.Forms.CheckBox KRST; - private System.Windows.Forms.CheckBox KRun; - private System.Windows.Forms.CheckBox KLck; - private System.Windows.Forms.CheckBox KK; - private System.Windows.Forms.CheckBox KJ; - private System.Windows.Forms.CheckBox KH; - private System.Windows.Forms.CheckBox KG; - private System.Windows.Forms.CheckBox KF; - private System.Windows.Forms.CheckBox KD; - private System.Windows.Forms.CheckBox KS; - private System.Windows.Forms.CheckBox KA; - private System.Windows.Forms.CheckBox KL; - private System.Windows.Forms.CheckBox KColon; - private System.Windows.Forms.CheckBox KSemicolon; - private System.Windows.Forms.CheckBox KEquals; - private System.Windows.Forms.CheckBox KReturn; - private System.Windows.Forms.CheckBox KCommodore; - private System.Windows.Forms.CheckBox KLeftShift; - private System.Windows.Forms.CheckBox KRightShift; - private System.Windows.Forms.CheckBox KSlash; - private System.Windows.Forms.CheckBox KPeriod; - private System.Windows.Forms.CheckBox KComma; - private System.Windows.Forms.CheckBox KM; - private System.Windows.Forms.CheckBox KN; - private System.Windows.Forms.CheckBox KB; - private System.Windows.Forms.CheckBox KV; - private System.Windows.Forms.CheckBox KC; - private System.Windows.Forms.CheckBox KX; - private System.Windows.Forms.CheckBox KZ; - private System.Windows.Forms.CheckBox KCursorUp; - private System.Windows.Forms.CheckBox KCursorLeft; - private System.Windows.Forms.CheckBox KSpace; - - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.cs deleted file mode 100644 index 6996050c06..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.cs +++ /dev/null @@ -1,635 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadC64Keyboard : UserControl , IVirtualPad - { - public string Controller { get; set; } - public VirtualPadC64Keyboard() - { - InitializeComponent(); - Controller = string.Empty; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "C64") - { - return; - } - else if (sender == KF1) - { - Global.StickyXORAdapter.SetSticky("Key F1", KF1.Checked); - } - else if (sender == KF3) - { - Global.StickyXORAdapter.SetSticky("Key F3", KF3.Checked); - } - else if (sender == KF5) - { - Global.StickyXORAdapter.SetSticky("Key F5", KF5.Checked); - } - else if (sender == KF7) - { - Global.StickyXORAdapter.SetSticky("Key F7", KF7.Checked); - } - else if (sender == KLeftArrow) - { - Global.StickyXORAdapter.SetSticky("Key Left Arrow", KLeftArrow.Checked); - } - else if (sender == K1) - { - Global.StickyXORAdapter.SetSticky("Key 1", K1.Checked); - } - else if (sender == K2) - { - Global.StickyXORAdapter.SetSticky("Key 2", K2.Checked); - } - else if (sender == K3) - { - Global.StickyXORAdapter.SetSticky("Key 3", K3.Checked); - } - else if (sender == K4) - { - Global.StickyXORAdapter.SetSticky("Key 4", K4.Checked); - } - else if (sender == K5) - { - Global.StickyXORAdapter.SetSticky("Key 5", K5.Checked); - } - else if (sender == K6) - { - Global.StickyXORAdapter.SetSticky("Key 6", K6.Checked); - } - else if (sender == K7) - { - Global.StickyXORAdapter.SetSticky("Key 7", K7.Checked); - } - else if (sender == K8) - { - Global.StickyXORAdapter.SetSticky("Key 8", K8.Checked); - } - else if (sender == K9) - { - Global.StickyXORAdapter.SetSticky("Key 9", K9.Checked); - } - else if (sender == K0) - { - Global.StickyXORAdapter.SetSticky("Key 0", K0.Checked); - } - else if (sender == KPlus) - { - Global.StickyXORAdapter.SetSticky("Key Plus", KPlus.Checked); - } - else if (sender == KMinus) - { - Global.StickyXORAdapter.SetSticky("Key Minus", KMinus.Checked); - } - else if (sender == KPound) - { - Global.StickyXORAdapter.SetSticky("Key Pound", KPound.Checked); - } - else if (sender == KClear) - { - Global.StickyXORAdapter.SetSticky("Key Clear/Home", KClear.Checked); - } - else if (sender == KInsert) - { - Global.StickyXORAdapter.SetSticky("Key Insert/Delete", KInsert.Checked); - } - else if (sender == KCtrl) - { - Global.StickyXORAdapter.SetSticky("Key Control", KCtrl.Checked); - } - else if (sender == KQ) - { - Global.StickyXORAdapter.SetSticky("Key Q", KQ.Checked); - } - else if (sender == KW) - { - Global.StickyXORAdapter.SetSticky("Key W", KW.Checked); - } - else if (sender == KE) - { - Global.StickyXORAdapter.SetSticky("Key E", KE.Checked); - } - else if (sender == KR) - { - Global.StickyXORAdapter.SetSticky("Key R", KR.Checked); - } - else if (sender == KT) - { - Global.StickyXORAdapter.SetSticky("Key T", KT.Checked); - } - else if (sender == KY) - { - Global.StickyXORAdapter.SetSticky("Key Y", KY.Checked); - } - else if (sender == KU) - { - Global.StickyXORAdapter.SetSticky("Key U", KU.Checked); - } - else if (sender == KI) - { - Global.StickyXORAdapter.SetSticky("Key I", KI.Checked); - } - else if (sender == KO) - { - Global.StickyXORAdapter.SetSticky("Key O", KO.Checked); - } - else if (sender == KP) - { - Global.StickyXORAdapter.SetSticky("Key P", KP.Checked); - } - else if (sender == KAt) - { - Global.StickyXORAdapter.SetSticky("Key At", KAt.Checked); - } - else if (sender == KAsterisk) - { - Global.StickyXORAdapter.SetSticky("Key Asterisk", KAsterisk.Checked); - } - else if (sender == KUpArrow) - { - Global.StickyXORAdapter.SetSticky("Key Up Arrow", KUpArrow.Checked); - } - else if (sender == KRST) - { - Global.StickyXORAdapter.SetSticky("Key Restore", KRST.Checked); - } - else if (sender == KRun) - { - Global.StickyXORAdapter.SetSticky("Key Run/Stop", KRun.Checked); - } - else if (sender == KLck) - { - Global.StickyXORAdapter.SetSticky("Key Lck", KLck.Checked); - } - else if (sender == KA) - { - Global.StickyXORAdapter.SetSticky("Key A", KA.Checked); - } - else if (sender == KS) - { - Global.StickyXORAdapter.SetSticky("Key S", KS.Checked); - } - else if (sender == KD) - { - Global.StickyXORAdapter.SetSticky("Key D", KD.Checked); - } - else if (sender == KF) - { - Global.StickyXORAdapter.SetSticky("Key F", KF.Checked); - } - else if (sender == KG) - { - Global.StickyXORAdapter.SetSticky("Key G", KG.Checked); - } - else if (sender == KH) - { - Global.StickyXORAdapter.SetSticky("Key H", KH.Checked); - } - else if (sender == KJ) - { - Global.StickyXORAdapter.SetSticky("Key J", KJ.Checked); - } - else if (sender == KK) - { - Global.StickyXORAdapter.SetSticky("Key K", KK.Checked); - } - else if (sender == KL) - { - Global.StickyXORAdapter.SetSticky("Key L", KL.Checked); - } - else if (sender == KColon) - { - Global.StickyXORAdapter.SetSticky("Key Colon", KColon.Checked); - } - else if (sender == KSemicolon) - { - Global.StickyXORAdapter.SetSticky("Key Semicolon", KSemicolon.Checked); - } - else if (sender == KEquals) - { - Global.StickyXORAdapter.SetSticky("Key Equal", KEquals.Checked); - } - else if (sender == KReturn) - { - Global.StickyXORAdapter.SetSticky("Key Return", KReturn.Checked); - } - else if (sender == KCommodore) - { - Global.StickyXORAdapter.SetSticky("Key Commodore", KCommodore.Checked); - } - else if (sender == KLeftShift) - { - Global.StickyXORAdapter.SetSticky("Key Left Shift", KLeftShift.Checked); - } - else if (sender == KZ) - { - Global.StickyXORAdapter.SetSticky("Key Z", KZ.Checked); - } - else if (sender == KX) - { - Global.StickyXORAdapter.SetSticky("Key X", KX.Checked); - } - else if (sender == KC) - { - Global.StickyXORAdapter.SetSticky("Key C", KC.Checked); - } - else if (sender == KV) - { - Global.StickyXORAdapter.SetSticky("Key V", KV.Checked); - } - else if (sender == KB) - { - Global.StickyXORAdapter.SetSticky("Key B", KB.Checked); - } - else if (sender == KN) - { - Global.StickyXORAdapter.SetSticky("Key N", KN.Checked); - } - else if (sender == KM) - { - Global.StickyXORAdapter.SetSticky("Key M", KM.Checked); - } - else if (sender == KComma) - { - Global.StickyXORAdapter.SetSticky("Key Comma", KComma.Checked); - } - else if (sender == KSemicolon) - { - Global.StickyXORAdapter.SetSticky("Key Semicolon", KSemicolon.Checked); - } - else if (sender == KEquals) - { - Global.StickyXORAdapter.SetSticky("Key Equal", KEquals.Checked); - } - else if (sender == KReturn) - { - Global.StickyXORAdapter.SetSticky("Key Return", KReturn.Checked); - } - else if (sender == KCommodore) - { - Global.StickyXORAdapter.SetSticky("Key Commodore", KCommodore.Checked); - } - else if (sender == KLeftShift) - { - Global.StickyXORAdapter.SetSticky("Key Left Shift", KLeftShift.Checked); - } - else if (sender == KZ) - { - Global.StickyXORAdapter.SetSticky("Key Z", KZ.Checked); - } - else if (sender == KX) - { - Global.StickyXORAdapter.SetSticky("Key X", KX.Checked); - } - else if (sender == KC) - { - Global.StickyXORAdapter.SetSticky("Key C", KC.Checked); - } - else if (sender == KV) - { - Global.StickyXORAdapter.SetSticky("Key V", KV.Checked); - } - else if (sender == KB) - { - Global.StickyXORAdapter.SetSticky("Key B", KB.Checked); - } - else if (sender == KN) - { - Global.StickyXORAdapter.SetSticky("Key N", KN.Checked); - } - else if (sender == KM) - { - Global.StickyXORAdapter.SetSticky("Key M", KM.Checked); - } - else if (sender == KComma) - { - Global.StickyXORAdapter.SetSticky("Key Comma", KComma.Checked); - } - else if (sender == KPeriod) - { - Global.StickyXORAdapter.SetSticky("Key Period", KPeriod.Checked); - } - else if (sender == KSlash) - { - Global.StickyXORAdapter.SetSticky("Key Slash", KSlash.Checked); - } - else if (sender == KRightShift) - { - Global.StickyXORAdapter.SetSticky("Key Right Shift", KRightShift.Checked); - } - else if (sender == KCursorUp) - { - Global.StickyXORAdapter.SetSticky("Key Cursor Up/Down", KCursorUp.Checked); - } - else if (sender == KCursorLeft) - { - Global.StickyXORAdapter.SetSticky("Key Cursor Left/Right", KCursorLeft.Checked); - } - else if (sender == KSpace) - { - Global.StickyXORAdapter.SetSticky("Key Space", KSpace.Checked); - } - } - - public void Clear() - { - if (Global.Emulator.SystemId != "C64") - { - return; - } - else - { - if (KF1.Checked) Global.StickyXORAdapter.SetSticky("Key F1", false); - if (KF3.Checked) Global.StickyXORAdapter.SetSticky("Key F3", false); - if (KF5.Checked) Global.StickyXORAdapter.SetSticky("Key F5", false); - if (KF7.Checked) Global.StickyXORAdapter.SetSticky("Key F7", false); - if (KLeftArrow.Checked) Global.StickyXORAdapter.SetSticky("Key Left Arrow", false); - if (K1.Checked) Global.StickyXORAdapter.SetSticky("Key 1", false); - if (K2.Checked) Global.StickyXORAdapter.SetSticky("Key 2", false); - if (K3.Checked) Global.StickyXORAdapter.SetSticky("Key 3", false); - if (K4.Checked) Global.StickyXORAdapter.SetSticky("Key 4", false); - if (K5.Checked) Global.StickyXORAdapter.SetSticky("Key 5", false); - if (K6.Checked) Global.StickyXORAdapter.SetSticky("Key 6", false); - if (K7.Checked) Global.StickyXORAdapter.SetSticky("Key 7", false); - if (K8.Checked) Global.StickyXORAdapter.SetSticky("Key 8", false); - if (K9.Checked) Global.StickyXORAdapter.SetSticky("Key 9", false); - if (K0.Checked) Global.StickyXORAdapter.SetSticky("Key Plus", false); - if (KPlus.Checked) Global.StickyXORAdapter.SetSticky("Key Minus", false); - if (KMinus.Checked) Global.StickyXORAdapter.SetSticky("Key Pound", false); - if (KPound.Checked) Global.StickyXORAdapter.SetSticky("Key Clear/Home", false); - if (KClear.Checked) Global.StickyXORAdapter.SetSticky("Key Insert/Delete", false); - if (KInsert.Checked) Global.StickyXORAdapter.SetSticky("Key Control", false); - if (KCtrl.Checked) Global.StickyXORAdapter.SetSticky("Key Q", false); - if (KQ.Checked) Global.StickyXORAdapter.SetSticky("Key W", false); - if (KW.Checked) Global.StickyXORAdapter.SetSticky("Key E", false); - if (KE.Checked) Global.StickyXORAdapter.SetSticky("Key R", false); - if (KR.Checked) Global.StickyXORAdapter.SetSticky("Key T", false); - if (KT.Checked) Global.StickyXORAdapter.SetSticky("Key Y", false); - if (KY.Checked) Global.StickyXORAdapter.SetSticky("Key U", false); - if (KU.Checked) Global.StickyXORAdapter.SetSticky("Key I", false); - if (KI.Checked) Global.StickyXORAdapter.SetSticky("Key O", false); - if (KO.Checked) Global.StickyXORAdapter.SetSticky("Key P", false); - if (KP.Checked) Global.StickyXORAdapter.SetSticky("Key At", false); - if (KAt.Checked) Global.StickyXORAdapter.SetSticky("Key Asterisk", false); - if (KAsterisk.Checked) Global.StickyXORAdapter.SetSticky("Key Up Arrow", false); - if (KUpArrow.Checked) Global.StickyXORAdapter.SetSticky("Key Restore", false); - if (KRST.Checked) Global.StickyXORAdapter.SetSticky("Key Run/Stop", false); - if (KRun.Checked) Global.StickyXORAdapter.SetSticky("Key Lck", false); - if (KLck.Checked) Global.StickyXORAdapter.SetSticky("Key A", false); - if (KA.Checked) Global.StickyXORAdapter.SetSticky("Key S", false); - if (KS.Checked) Global.StickyXORAdapter.SetSticky("Key D", false); - if (KD.Checked) Global.StickyXORAdapter.SetSticky("Key F", false); - if (KF.Checked) Global.StickyXORAdapter.SetSticky("Key G", false); - if (KG.Checked) Global.StickyXORAdapter.SetSticky("Key H", false); - if (KH.Checked) Global.StickyXORAdapter.SetSticky("Key J", false); - if (KJ.Checked) Global.StickyXORAdapter.SetSticky("Key K", false); - if (KK.Checked) Global.StickyXORAdapter.SetSticky("Key L", false); - if (KL.Checked) Global.StickyXORAdapter.SetSticky("Key Colon", false); - if (KColon.Checked) Global.StickyXORAdapter.SetSticky("Key Semicolon", false); - if (KSemicolon.Checked) Global.StickyXORAdapter.SetSticky("Key Equal", false); - if (KEquals.Checked) Global.StickyXORAdapter.SetSticky("Key Return", false); - if (KReturn.Checked) Global.StickyXORAdapter.SetSticky("Key Commodore", false); - if (KCommodore.Checked) Global.StickyXORAdapter.SetSticky("Key Left Shift", false); - if (KLeftShift.Checked) Global.StickyXORAdapter.SetSticky("Key Z", false); - if (KZ.Checked) Global.StickyXORAdapter.SetSticky("Key X", false); - if (KX.Checked) Global.StickyXORAdapter.SetSticky("Key C", false); - if (KC.Checked) Global.StickyXORAdapter.SetSticky("Key V", false); - if (KV.Checked) Global.StickyXORAdapter.SetSticky("Key B", false); - if (KB.Checked) Global.StickyXORAdapter.SetSticky("Key N", false); - if (KN.Checked) Global.StickyXORAdapter.SetSticky("Key M", false); - if (KM.Checked) Global.StickyXORAdapter.SetSticky("Key Comma", false); - if (KComma.Checked) Global.StickyXORAdapter.SetSticky("Key Period", false); - if (KPeriod.Checked) Global.StickyXORAdapter.SetSticky("Key Slash", false); - if (KSlash.Checked) Global.StickyXORAdapter.SetSticky("Key Right Shift", false); - if (KRightShift.Checked) Global.StickyXORAdapter.SetSticky("Key Cursor Up/Down", false); - if (KCursorUp.Checked) Global.StickyXORAdapter.SetSticky("Key Cursor Left/Right", false); - if (KCursorLeft.Checked) Global.StickyXORAdapter.SetSticky("Key Space", false); - - KF1.Checked = false; - KF3.Checked = false; - KF5.Checked = false; - KF7.Checked = false; - KLeftArrow.Checked = false; - K1.Checked = false; - K2.Checked = false; - K3.Checked = false; - K4.Checked = false; - K5.Checked = false; - K6.Checked = false; - K7.Checked = false; - K8.Checked = false; - K9.Checked = false; - K0.Checked = false; - KPlus.Checked = false; - KMinus.Checked = false; - KPound.Checked = false; - KClear.Checked = false; - KInsert.Checked = false; - KCtrl.Checked = false; - KQ.Checked = false; - KW.Checked = false; - KE.Checked = false; - KR.Checked = false; - KT.Checked = false; - KY.Checked = false; - KU.Checked = false; - KI.Checked = false; - KO.Checked = false; - KP.Checked = false; - KAt.Checked = false; - KAsterisk.Checked = false; - KUpArrow.Checked = false; - KRST.Checked = false; - KRun.Checked = false; - KLck.Checked = false; - KA.Checked = false; - KS.Checked = false; - KD.Checked = false; - KF.Checked = false; - KG.Checked = false; - KH.Checked = false; - KJ.Checked = false; - KK.Checked = false; - KL.Checked = false; - KColon.Checked = false; - KSemicolon.Checked = false; - KEquals.Checked = false; - KReturn.Checked = false; - KCommodore.Checked = false; - KLeftShift.Checked = false; - KZ.Checked = false; - KX.Checked = false; - KC.Checked = false; - KV.Checked = false; - KB.Checked = false; - KN.Checked = false; - KM.Checked = false; - KComma.Checked = false; - KPeriod.Checked = false; - KSlash.Checked = false; - KRightShift.Checked = false; - KCursorUp.Checked = false; - KCursorLeft.Checked = false; - KSpace.Checked = false; - } - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - - input.Append(KF1.Checked ? "1" : "."); - input.Append(KF3.Checked ? "3" : "."); - input.Append(KF5.Checked ? "5" : "."); - input.Append(KF7.Checked ? "7" : "."); - input.Append(KLeftArrow.Checked ? "l" : "."); - input.Append(K1.Checked ? "1" : "."); - input.Append(K2.Checked ? "2" : "."); - input.Append(K3.Checked ? "3" : "."); - input.Append(K4.Checked ? "4" : "."); - input.Append(K5.Checked ? "5" : "."); - input.Append(K6.Checked ? "6" : "."); - input.Append(K7.Checked ? "7" : "."); - input.Append(K8.Checked ? "8" : "."); - input.Append(K9.Checked ? "9" : "."); - input.Append(K0.Checked ? "0" : "."); - input.Append(KPlus.Checked ? "+" : "."); - input.Append(KMinus.Checked ? "-" : "."); - input.Append(KPound.Checked ? "l" : "."); - input.Append(KClear.Checked ? "c" : "."); - input.Append(KInsert.Checked ? "i" : "."); - input.Append(KCtrl.Checked ? "c" : "."); - input.Append(KQ.Checked ? "Q" : "."); - input.Append(KW.Checked ? "W" : "."); - input.Append(KE.Checked ? "E" : "."); - input.Append(KR.Checked ? "R" : "."); - input.Append(KT.Checked ? "T" : "."); - input.Append(KY.Checked ? "Y" : "."); - input.Append(KU.Checked ? "U" : "."); - input.Append(KI.Checked ? "I" : "."); - input.Append(KO.Checked ? "O" : "."); - input.Append(KP.Checked ? "P" : "."); - input.Append(KAt.Checked ? "@" : "."); - input.Append(KAsterisk.Checked ? "*" : "."); - input.Append(KUpArrow.Checked ? "u" : "."); - input.Append(KRST.Checked ? "r" : "."); - input.Append(KRun.Checked ? "s" : "."); - input.Append(KLck.Checked ? "k" : "."); - input.Append(KA.Checked ? "A" : "."); - input.Append(KS.Checked ? "S" : "."); - input.Append(KD.Checked ? "D" : "."); - input.Append(KF.Checked ? "F" : "."); - input.Append(KG.Checked ? "G" : "."); - input.Append(KH.Checked ? "H" : "."); - input.Append(KJ.Checked ? "J" : "."); - input.Append(KK.Checked ? "K" : "."); - input.Append(KL.Checked ? "L" : "."); - input.Append(KColon.Checked ? ":" : "."); - input.Append(KSemicolon.Checked ? ";" : "."); - input.Append(KEquals.Checked ? "=" : "."); - input.Append(KReturn.Checked ? "e" : "."); - input.Append(KCommodore.Checked ? "o" : "."); - input.Append(KLeftShift.Checked ? "s" : "."); - input.Append(KZ.Checked ? "Z" : "."); - input.Append(KX.Checked ? "X" : "."); - input.Append(KC.Checked ? "C" : "."); - input.Append(KV.Checked ? "V" : "."); - input.Append(KB.Checked ? "B" : "."); - input.Append(KN.Checked ? "N" : "."); - input.Append(KM.Checked ? "M" : "."); - input.Append(KComma.Checked ? "," : "."); - input.Append(KPeriod.Checked ? ">" : "."); - input.Append(KSlash.Checked ? "/" : "."); - input.Append(KRightShift.Checked ? "s" : "."); - input.Append(KCursorUp.Checked ? "u" : "."); - input.Append(KCursorLeft.Checked ? "l" : "."); - input.Append(KSpace.Checked ? "_" : "."); - - input.Append("|"); - return input.ToString(); - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 66) - { - return; - } - - if (buttons[0] == '.') KF1.Checked = false; else KF1.Checked = true; - if (buttons[1] == '.') KF3.Checked = false; else KF3.Checked = true; - if (buttons[2] == '.') KF5.Checked = false; else KF5.Checked = true; - if (buttons[3] == '.') KF7.Checked = false; else KF7.Checked = true; - if (buttons[4] == '.') KLeftArrow.Checked = false; else KLeftArrow.Checked = true; - if (buttons[5] == '.') K1.Checked = false; else K1.Checked = true; - if (buttons[5] == '.') K2.Checked = false; else K2.Checked = true; - if (buttons[6] == '.') K3.Checked = false; else K3.Checked = true; - if (buttons[7] == '.') K4.Checked = false; else K4.Checked = true; - if (buttons[8] == '.') K5.Checked = false; else K5.Checked = true; - if (buttons[9] == '.') K6.Checked = false; else K6.Checked = true; - if (buttons[10] == '.') K7.Checked = false; else K7.Checked = true; - if (buttons[11] == '.') K8.Checked = false; else K8.Checked = true; - if (buttons[12] == '.') K9.Checked = false; else K9.Checked = true; - if (buttons[13] == '.') K0.Checked = false; else K0.Checked = true; - if (buttons[14] == '.') KPlus.Checked = false; else KPlus.Checked = true; - if (buttons[15] == '.') KMinus.Checked = false; else KMinus.Checked = true; - if (buttons[16] == '.') KPound.Checked = false; else KPound.Checked = true; - if (buttons[17] == '.') KClear.Checked = false; else KClear.Checked = true; - if (buttons[18] == '.') KInsert.Checked = false; else KInsert.Checked = true; - if (buttons[19] == '.') KCtrl.Checked = false; else KCtrl.Checked = true; - if (buttons[20] == '.') KQ.Checked = false; else KQ.Checked = true; - if (buttons[21] == '.') KW.Checked = false; else KW.Checked = true; - if (buttons[22] == '.') KE.Checked = false; else KE.Checked = true; - if (buttons[23] == '.') KR.Checked = false; else KR.Checked = true; - if (buttons[24] == '.') KT.Checked = false; else KT.Checked = true; - if (buttons[25] == '.') KY.Checked = false; else KY.Checked = true; - if (buttons[26] == '.') KU.Checked = false; else KU.Checked = true; - if (buttons[27] == '.') KI.Checked = false; else KI.Checked = true; - if (buttons[28] == '.') KO.Checked = false; else KO.Checked = true; - if (buttons[29] == '.') KP.Checked = false; else KP.Checked = true; - if (buttons[30] == '.') KAt.Checked = false; else KAt.Checked = true; - if (buttons[31] == '.') KAsterisk.Checked = false; else KAsterisk.Checked = true; - if (buttons[32] == '.') KUpArrow.Checked = false; else KUpArrow.Checked = true; - if (buttons[33] == '.') KRST.Checked = false; else KRST.Checked = true; - if (buttons[34] == '.') KRun.Checked = false; else KRun.Checked = true; - if (buttons[35] == '.') KLck.Checked = false; else KLck.Checked = true; - if (buttons[36] == '.') KA.Checked = false; else KA.Checked = true; - if (buttons[37] == '.') KS.Checked = false; else KS.Checked = true; - if (buttons[38] == '.') KD.Checked = false; else KD.Checked = true; - if (buttons[39] == '.') KF.Checked = false; else KF.Checked = true; - if (buttons[40] == '.') KG.Checked = false; else KG.Checked = true; - if (buttons[41] == '.') KH.Checked = false; else KH.Checked = true; - if (buttons[42] == '.') KJ.Checked = false; else KJ.Checked = true; - if (buttons[43] == '.') KK.Checked = false; else KK.Checked = true; - if (buttons[44] == '.') KL.Checked = false; else KL.Checked = true; - if (buttons[45] == '.') KColon.Checked = false; else KColon.Checked = true; - if (buttons[46] == '.') KSemicolon.Checked = false; else KSemicolon.Checked = true; - if (buttons[47] == '.') KEquals.Checked = false; else KEquals.Checked = true; - if (buttons[48] == '.') KReturn.Checked = false; else KReturn.Checked = true; - if (buttons[49] == '.') KCommodore.Checked = false; else KCommodore.Checked = true; - if (buttons[50] == '.') KLeftShift.Checked = false; else KLeftShift.Checked = true; - if (buttons[51] == '.') KZ.Checked = false; else KZ.Checked = true; - if (buttons[52] == '.') KX.Checked = false; else KX.Checked = true; - if (buttons[53] == '.') KC.Checked = false; else KC.Checked = true; - if (buttons[54] == '.') KV.Checked = false; else KV.Checked = true; - if (buttons[55] == '.') KB.Checked = false; else KB.Checked = true; - if (buttons[56] == '.') KN.Checked = false; else KN.Checked = true; - if (buttons[57] == '.') KM.Checked = false; else KM.Checked = true; - if (buttons[58] == '.') KComma.Checked = false; else KComma.Checked = true; - if (buttons[59] == '.') KPeriod.Checked = false; else KPeriod.Checked = true; - if (buttons[60] == '.') KSlash.Checked = false; else KSlash.Checked = true; - if (buttons[61] == '.') KRightShift.Checked = false; else KRightShift.Checked = true; - if (buttons[62] == '.') KCursorUp.Checked = false; else KCursorUp.Checked = true; - if (buttons[63] == '.') KCursorLeft.Checked = false; else KCursorLeft.Checked = true; - if (buttons[64] == '.') KSpace.Checked = false; else KSpace.Checked = true; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadC64Keyboard.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.Designer.cs deleted file mode 100644 index 7ded50b434..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.Designer.cs +++ /dev/null @@ -1,319 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadColeco - { - /// - /// 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.PU = new System.Windows.Forms.CheckBox(); - this.PR = new System.Windows.Forms.CheckBox(); - this.PD = new System.Windows.Forms.CheckBox(); - this.PL = new System.Windows.Forms.CheckBox(); - this.KeyLeft = new System.Windows.Forms.CheckBox(); - this.KeyRight = new System.Windows.Forms.CheckBox(); - this.KP7 = new System.Windows.Forms.CheckBox(); - this.KP8 = new System.Windows.Forms.CheckBox(); - this.KP9 = new System.Windows.Forms.CheckBox(); - this.KP6 = new System.Windows.Forms.CheckBox(); - this.KP5 = new System.Windows.Forms.CheckBox(); - this.KP4 = new System.Windows.Forms.CheckBox(); - this.KP3 = new System.Windows.Forms.CheckBox(); - this.KP2 = new System.Windows.Forms.CheckBox(); - this.KP1 = new System.Windows.Forms.CheckBox(); - this.KPPound = new System.Windows.Forms.CheckBox(); - this.KP0 = new System.Windows.Forms.CheckBox(); - this.KPStar = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(43, 3); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 0; - this.PU.UseVisualStyleBackColor = true; - this.PU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(64, 15); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 1; - this.PR.UseVisualStyleBackColor = true; - this.PR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(43, 24); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 2; - this.PD.UseVisualStyleBackColor = true; - this.PD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(22, 15); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 3; - this.PL.UseVisualStyleBackColor = true; - this.PL.CheckStateChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KeyLeft - // - this.KeyLeft.Appearance = System.Windows.Forms.Appearance.Button; - this.KeyLeft.AutoSize = true; - this.KeyLeft.Location = new System.Drawing.Point(5, 51); - this.KeyLeft.Name = "KeyLeft"; - this.KeyLeft.Size = new System.Drawing.Size(23, 23); - this.KeyLeft.TabIndex = 4; - this.KeyLeft.Text = "L"; - this.KeyLeft.UseVisualStyleBackColor = true; - this.KeyLeft.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KeyRight - // - this.KeyRight.Appearance = System.Windows.Forms.Appearance.Button; - this.KeyRight.AutoSize = true; - this.KeyRight.Location = new System.Drawing.Point(82, 51); - this.KeyRight.Name = "KeyRight"; - this.KeyRight.Size = new System.Drawing.Size(25, 23); - this.KeyRight.TabIndex = 5; - this.KeyRight.Text = "R"; - this.KeyRight.UseVisualStyleBackColor = true; - this.KeyRight.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP7 - // - this.KP7.Appearance = System.Windows.Forms.Appearance.Button; - this.KP7.AutoSize = true; - this.KP7.Location = new System.Drawing.Point(22, 129); - this.KP7.Name = "KP7"; - this.KP7.Size = new System.Drawing.Size(23, 23); - this.KP7.TabIndex = 6; - this.KP7.Text = "7"; - this.KP7.UseVisualStyleBackColor = true; - this.KP7.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP8 - // - this.KP8.Appearance = System.Windows.Forms.Appearance.Button; - this.KP8.AutoSize = true; - this.KP8.Location = new System.Drawing.Point(45, 129); - this.KP8.Name = "KP8"; - this.KP8.Size = new System.Drawing.Size(23, 23); - this.KP8.TabIndex = 8; - this.KP8.Text = "8"; - this.KP8.UseVisualStyleBackColor = true; - this.KP8.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP9 - // - this.KP9.Appearance = System.Windows.Forms.Appearance.Button; - this.KP9.AutoSize = true; - this.KP9.Location = new System.Drawing.Point(67, 129); - this.KP9.Name = "KP9"; - this.KP9.Size = new System.Drawing.Size(23, 23); - this.KP9.TabIndex = 8; - this.KP9.Text = "9"; - this.KP9.UseVisualStyleBackColor = true; - this.KP9.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP6 - // - this.KP6.Appearance = System.Windows.Forms.Appearance.Button; - this.KP6.AutoSize = true; - this.KP6.Location = new System.Drawing.Point(67, 106); - this.KP6.Name = "KP6"; - this.KP6.Size = new System.Drawing.Size(23, 23); - this.KP6.TabIndex = 10; - this.KP6.Text = "6"; - this.KP6.UseVisualStyleBackColor = true; - this.KP6.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP5 - // - this.KP5.Appearance = System.Windows.Forms.Appearance.Button; - this.KP5.AutoSize = true; - this.KP5.Location = new System.Drawing.Point(45, 106); - this.KP5.Name = "KP5"; - this.KP5.Size = new System.Drawing.Size(23, 23); - this.KP5.TabIndex = 11; - this.KP5.Text = "5"; - this.KP5.UseVisualStyleBackColor = true; - this.KP5.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP4 - // - this.KP4.Appearance = System.Windows.Forms.Appearance.Button; - this.KP4.AutoSize = true; - this.KP4.Location = new System.Drawing.Point(22, 106); - this.KP4.Name = "KP4"; - this.KP4.Size = new System.Drawing.Size(23, 23); - this.KP4.TabIndex = 9; - this.KP4.Text = "4"; - this.KP4.UseVisualStyleBackColor = true; - this.KP4.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP3 - // - this.KP3.Appearance = System.Windows.Forms.Appearance.Button; - this.KP3.AutoSize = true; - this.KP3.Location = new System.Drawing.Point(67, 83); - this.KP3.Name = "KP3"; - this.KP3.Size = new System.Drawing.Size(23, 23); - this.KP3.TabIndex = 13; - this.KP3.Text = "3"; - this.KP3.UseVisualStyleBackColor = true; - this.KP3.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP2 - // - this.KP2.Appearance = System.Windows.Forms.Appearance.Button; - this.KP2.AutoSize = true; - this.KP2.Location = new System.Drawing.Point(45, 83); - this.KP2.Name = "KP2"; - this.KP2.Size = new System.Drawing.Size(23, 23); - this.KP2.TabIndex = 14; - this.KP2.Text = "2"; - this.KP2.UseVisualStyleBackColor = true; - this.KP2.CheckStateChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP1 - // - this.KP1.Appearance = System.Windows.Forms.Appearance.Button; - this.KP1.AutoSize = true; - this.KP1.Location = new System.Drawing.Point(22, 83); - this.KP1.Name = "KP1"; - this.KP1.Size = new System.Drawing.Size(23, 23); - this.KP1.TabIndex = 12; - this.KP1.Text = "1"; - this.KP1.UseVisualStyleBackColor = true; - this.KP1.CheckStateChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KPPound - // - this.KPPound.Appearance = System.Windows.Forms.Appearance.Button; - this.KPPound.AutoSize = true; - this.KPPound.Location = new System.Drawing.Point(67, 152); - this.KPPound.Name = "KPPound"; - this.KPPound.Size = new System.Drawing.Size(24, 23); - this.KPPound.TabIndex = 16; - this.KPPound.Text = "#"; - this.KPPound.UseVisualStyleBackColor = true; - this.KPPound.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KP0 - // - this.KP0.Appearance = System.Windows.Forms.Appearance.Button; - this.KP0.AutoSize = true; - this.KP0.Location = new System.Drawing.Point(45, 152); - this.KP0.Name = "KP0"; - this.KP0.Size = new System.Drawing.Size(23, 23); - this.KP0.TabIndex = 17; - this.KP0.Text = "0"; - this.KP0.UseVisualStyleBackColor = true; - this.KP0.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // KPStar - // - this.KPStar.Appearance = System.Windows.Forms.Appearance.Button; - this.KPStar.AutoSize = true; - this.KPStar.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.KPStar.Location = new System.Drawing.Point(22, 152); - this.KPStar.Name = "KPStar"; - this.KPStar.Size = new System.Drawing.Size(21, 23); - this.KPStar.TabIndex = 15; - this.KPStar.Text = "*"; - this.KPStar.UseVisualStyleBackColor = true; - this.KPStar.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadColeco - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.KPPound); - this.Controls.Add(this.KP0); - this.Controls.Add(this.KPStar); - this.Controls.Add(this.KP3); - this.Controls.Add(this.KP2); - this.Controls.Add(this.KP1); - this.Controls.Add(this.KP6); - this.Controls.Add(this.KP5); - this.Controls.Add(this.KP4); - this.Controls.Add(this.KP9); - this.Controls.Add(this.KP8); - this.Controls.Add(this.KP7); - this.Controls.Add(this.KeyRight); - this.Controls.Add(this.KeyLeft); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Name = "VirtualPadColeco"; - this.Size = new System.Drawing.Size(115, 193); - this.Load += new System.EventHandler(this.VirtualPadColeco_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox PU; - private System.Windows.Forms.CheckBox PR; - private System.Windows.Forms.CheckBox PD; - private System.Windows.Forms.CheckBox PL; - private System.Windows.Forms.CheckBox KeyLeft; - private System.Windows.Forms.CheckBox KeyRight; - private System.Windows.Forms.CheckBox KP7; - private System.Windows.Forms.CheckBox KP8; - private System.Windows.Forms.CheckBox KP9; - private System.Windows.Forms.CheckBox KP6; - private System.Windows.Forms.CheckBox KP5; - private System.Windows.Forms.CheckBox KP4; - private System.Windows.Forms.CheckBox KP3; - private System.Windows.Forms.CheckBox KP2; - private System.Windows.Forms.CheckBox KP1; - private System.Windows.Forms.CheckBox KPPound; - private System.Windows.Forms.CheckBox KP0; - private System.Windows.Forms.CheckBox KPStar; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.cs deleted file mode 100644 index 8bb6f920c1..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.cs +++ /dev/null @@ -1,196 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadColeco : UserControl , IVirtualPad - { - public string Controller { get; set; } - public VirtualPadColeco() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - InitializeComponent(); - - Controller = "P1"; - } - - private void VirtualPadColeco_Load(object sender, EventArgs e) - { - - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(KeyLeft.Checked ? "l" : "."); - input.Append(KeyRight.Checked ? "r" : "."); - input.Append(KP1.Checked ? "1" : "."); - input.Append(KP2.Checked ? "2" : "."); - input.Append(KP3.Checked ? "3" : "."); - input.Append(KP4.Checked ? "4" : "."); - input.Append(KP5.Checked ? "5" : "."); - input.Append(KP6.Checked ? "6" : "."); - input.Append(KP7.Checked ? "7" : "."); - input.Append(KP8.Checked ? "8" : "."); - input.Append(KP9.Checked ? "9" : "."); - input.Append(KPStar.Checked ? "*" : "."); - input.Append(KP0.Checked ? "0" : "."); - input.Append(KPPound.Checked ? "#" : "."); - input.Append("|"); - return input.ToString(); - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 18) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') KeyLeft.Checked = false; else KeyLeft.Checked = true; - if (buttons[5] == '.') KeyRight.Checked = false; else KeyRight.Checked = true; - if (buttons[6] == '.') KP1.Checked = false; else KP1.Checked = true; - if (buttons[6] == '.') KP2.Checked = false; else KP2.Checked = true; - if (buttons[6] == '.') KP3.Checked = false; else KP3.Checked = true; - if (buttons[6] == '.') KP4.Checked = false; else KP4.Checked = true; - if (buttons[6] == '.') KP5.Checked = false; else KP5.Checked = true; - if (buttons[6] == '.') KP6.Checked = false; else KP6.Checked = true; - if (buttons[6] == '.') KP7.Checked = false; else KP7.Checked = true; - if (buttons[6] == '.') KP8.Checked = false; else KP8.Checked = true; - if (buttons[6] == '.') KP9.Checked = false; else KP9.Checked = true; - if (buttons[6] == '.') KPStar.Checked = false; else KPStar.Checked = true; - if (buttons[6] == '.') KP0.Checked = false; else KP0.Checked = true; - if (buttons[6] == '.') KPPound.Checked = false; else KPPound.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "Coleco") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - - else if (sender == KeyLeft) - Global.StickyXORAdapter.SetSticky(Controller + " L", KeyLeft.Checked); - else if (sender == KeyRight) - Global.StickyXORAdapter.SetSticky(Controller + " R", KeyRight.Checked); - else if (sender == KP1) - Global.StickyXORAdapter.SetSticky(Controller + " Key1", KP1.Checked); - else if (sender == KP2) - Global.StickyXORAdapter.SetSticky(Controller + " Key2", KP2.Checked); - else if (sender == KP3) - Global.StickyXORAdapter.SetSticky(Controller + " Key3", KP3.Checked); - else if (sender == KP4) - Global.StickyXORAdapter.SetSticky(Controller + " Key4", KP4.Checked); - else if (sender == KP5) - Global.StickyXORAdapter.SetSticky(Controller + " Key5", KP5.Checked); - else if (sender == KP6) - Global.StickyXORAdapter.SetSticky(Controller + " Key6", KP6.Checked); - else if (sender == KP7) - Global.StickyXORAdapter.SetSticky(Controller + " Key7", KP7.Checked); - else if (sender == KP8) - Global.StickyXORAdapter.SetSticky(Controller + " Key8", KP8.Checked); - else if (sender == KP9) - Global.StickyXORAdapter.SetSticky(Controller + " Key9", KP9.Checked); - else if (sender == KPStar) - Global.StickyXORAdapter.SetSticky(Controller + " Star", KPStar.Checked); - else if (sender == KP0) - Global.StickyXORAdapter.SetSticky(Controller + " Key0", KP0.Checked); - else if (sender == KPPound) - Global.StickyXORAdapter.SetSticky(Controller + " Pound", KPPound.Checked); - } - - public void Clear() - { - if (Global.Emulator.SystemId != "Coleco") return; - - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (KeyLeft.Checked) Global.StickyXORAdapter.SetSticky(Controller + " L", false); - if (KeyRight.Checked) Global.StickyXORAdapter.SetSticky(Controller + " R", false); - if (KP1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key0", false); - if (KP2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key1", false); - if (KP3.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key2", false); - if (KP4.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key3", false); - if (KP5.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key4", false); - if (KP6.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key5", false); - if (KP7.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key6", false); - if (KP8.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key7", false); - if (KP9.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key8", false); - if (KPStar.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Key9", false); - if (KP0.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Star", false); - if (KPPound.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Pound", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - KeyLeft.Checked = false; - KeyRight.Checked = false; - KP1.Checked = false; - KP2.Checked = false; - KP3.Checked = false; - KP4.Checked = false; - KP5.Checked = false; - KP6.Checked = false; - KP7.Checked = false; - KP8.Checked = false; - KP9.Checked = false; - KPStar.Checked = false; - KP0.Checked = false; - KPPound.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadColeco.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.Designer.cs deleted file mode 100644 index 728d61b1ee..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.Designer.cs +++ /dev/null @@ -1,247 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadForm - { - /// - /// 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 Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VirtualPadForm)); - this.ControllerBox = new System.Windows.Forms.GroupBox(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.ClearMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.menuStrip1 = new MenuStripEx(); - this.OptionsSubMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.AutoloadMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.SaveWindowPositionMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.AlwaysOnTopMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.FloatingWindowMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.RestoreDefaultSettingsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.PadsSubMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.MultiplayerModeMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.StickyBox = new System.Windows.Forms.CheckBox(); - this.ClearButton = new System.Windows.Forms.Button(); - this.contextMenuStrip1.SuspendLayout(); - this.menuStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // ControllerBox - // - this.ControllerBox.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.ControllerBox.ContextMenuStrip = this.contextMenuStrip1; - this.ControllerBox.Location = new System.Drawing.Point(9, 26); - this.ControllerBox.Name = "ControllerBox"; - this.ControllerBox.Size = new System.Drawing.Size(431, 251); - this.ControllerBox.TabIndex = 5; - this.ControllerBox.TabStop = false; - this.ControllerBox.Text = "Controllers"; - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ClearMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(102, 26); - // - // ClearMenuItem - // - this.ClearMenuItem.Name = "ClearMenuItem"; - this.ClearMenuItem.Size = new System.Drawing.Size(101, 22); - this.ClearMenuItem.Text = "&Clear"; - this.ClearMenuItem.Click += new System.EventHandler(this.ClearMenuItem_Click); - // - // menuStrip1 - // - this.menuStrip1.ClickThrough = true; - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.OptionsSubMenu, - this.PadsSubMenu}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(452, 24); - this.menuStrip1.TabIndex = 6; - this.menuStrip1.Text = "menuStrip1"; - // - // OptionsSubMenu - // - this.OptionsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.AutoloadMenuItem, - this.SaveWindowPositionMenuItem, - this.AlwaysOnTopMenuItem, - this.FloatingWindowMenuItem, - this.toolStripSeparator2, - this.RestoreDefaultSettingsMenuItem, - this.toolStripSeparator1, - this.ExitMenuItem}); - this.OptionsSubMenu.Name = "OptionsSubMenu"; - this.OptionsSubMenu.Size = new System.Drawing.Size(61, 20); - this.OptionsSubMenu.Text = "&Options"; - this.OptionsSubMenu.DropDownOpened += new System.EventHandler(this.OptionsSubMenu_DropDownOpened); - // - // AutoloadMenuItem - // - this.AutoloadMenuItem.Name = "AutoloadMenuItem"; - this.AutoloadMenuItem.Size = new System.Drawing.Size(199, 22); - this.AutoloadMenuItem.Text = "&Autoload"; - this.AutoloadMenuItem.Click += new System.EventHandler(this.AutoloadMenuItem_Click); - // - // SaveWindowPositionMenuItem - // - this.SaveWindowPositionMenuItem.Name = "SaveWindowPositionMenuItem"; - this.SaveWindowPositionMenuItem.Size = new System.Drawing.Size(199, 22); - this.SaveWindowPositionMenuItem.Text = "&Save Window Position"; - this.SaveWindowPositionMenuItem.Click += new System.EventHandler(this.SaveWindowPositionMenuItem_Click); - // - // AlwaysOnTopMenuItem - // - this.AlwaysOnTopMenuItem.Name = "AlwaysOnTopMenuItem"; - this.AlwaysOnTopMenuItem.Size = new System.Drawing.Size(199, 22); - this.AlwaysOnTopMenuItem.Text = "Always On Top"; - this.AlwaysOnTopMenuItem.Click += new System.EventHandler(this.AlwaysOnTopMenuItem_Click); - // - // FloatingWindowMenuItem - // - this.FloatingWindowMenuItem.Name = "FloatingWindowMenuItem"; - this.FloatingWindowMenuItem.Size = new System.Drawing.Size(199, 22); - this.FloatingWindowMenuItem.Text = "Floating Window"; - this.FloatingWindowMenuItem.Click += new System.EventHandler(this.FloatingWindowMenuItem_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(196, 6); - // - // RestoreDefaultSettingsMenuItem - // - this.RestoreDefaultSettingsMenuItem.Name = "RestoreDefaultSettingsMenuItem"; - this.RestoreDefaultSettingsMenuItem.Size = new System.Drawing.Size(199, 22); - this.RestoreDefaultSettingsMenuItem.Text = "Restore Default Settings"; - this.RestoreDefaultSettingsMenuItem.Click += new System.EventHandler(this.RestoreDefaultSettingsMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(196, 6); - // - // ExitMenuItem - // - this.ExitMenuItem.Name = "ExitMenuItem"; - this.ExitMenuItem.ShortcutKeyDisplayString = "Alt+F4"; - this.ExitMenuItem.Size = new System.Drawing.Size(199, 22); - this.ExitMenuItem.Text = "E&xit"; - this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click); - // - // PadsSubMenu - // - this.PadsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.MultiplayerModeMenuItem}); - this.PadsSubMenu.Name = "PadsSubMenu"; - this.PadsSubMenu.Size = new System.Drawing.Size(44, 20); - this.PadsSubMenu.Text = "&Pads"; - this.PadsSubMenu.DropDownOpened += new System.EventHandler(this.PadsSubMenu_DropDownOpened); - // - // MultiplayerModeMenuItem - // - this.MultiplayerModeMenuItem.Name = "MultiplayerModeMenuItem"; - this.MultiplayerModeMenuItem.Size = new System.Drawing.Size(168, 22); - this.MultiplayerModeMenuItem.Text = "&Multiplayer Mode"; - this.MultiplayerModeMenuItem.Click += new System.EventHandler(this.MultiplayerModeMenuItem_Click); - // - // StickyBox - // - this.StickyBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.StickyBox.AutoSize = true; - this.StickyBox.Location = new System.Drawing.Point(9, 283); - this.StickyBox.Name = "StickyBox"; - this.StickyBox.Size = new System.Drawing.Size(55, 17); - this.StickyBox.TabIndex = 7; - this.StickyBox.TabStop = false; - this.StickyBox.Text = "Sticky"; - this.StickyBox.UseVisualStyleBackColor = true; - this.StickyBox.CheckedChanged += new System.EventHandler(this.StickyBox_CheckedChanged); - // - // ClearButton - // - this.ClearButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.ClearButton.Location = new System.Drawing.Point(79, 279); - this.ClearButton.Name = "ClearButton"; - this.ClearButton.Size = new System.Drawing.Size(75, 23); - this.ClearButton.TabIndex = 8; - this.ClearButton.TabStop = false; - this.ClearButton.Text = "&Clear"; - this.ClearButton.UseVisualStyleBackColor = true; - this.ClearButton.Click += new System.EventHandler(this.ClearMenuItem_Click); - // - // VirtualPadForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(452, 312); - this.Controls.Add(this.ClearButton); - this.Controls.Add(this.ControllerBox); - this.Controls.Add(this.StickyBox); - this.Controls.Add(this.menuStrip1); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MainMenuStrip = this.menuStrip1; - this.MinimumSize = new System.Drawing.Size(100, 100); - this.Name = "VirtualPadForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Virtual Pads"; - this.Load += new System.EventHandler(this.VirtualPadForm_Load); - this.contextMenuStrip1.ResumeLayout(false); - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.GroupBox ControllerBox; - private MenuStripEx menuStrip1; - private System.Windows.Forms.ToolStripMenuItem OptionsSubMenu; - private System.Windows.Forms.ToolStripMenuItem AutoloadMenuItem; - private System.Windows.Forms.ToolStripMenuItem SaveWindowPositionMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripMenuItem ExitMenuItem; - private System.Windows.Forms.CheckBox StickyBox; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; - private System.Windows.Forms.ToolStripMenuItem ClearMenuItem; - private System.Windows.Forms.ToolStripMenuItem RestoreDefaultSettingsMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripMenuItem AlwaysOnTopMenuItem; - private System.Windows.Forms.Button ClearButton; - private System.Windows.Forms.ToolStripMenuItem FloatingWindowMenuItem; - private System.Windows.Forms.ToolStripMenuItem PadsSubMenu; - private System.Windows.Forms.ToolStripMenuItem MultiplayerModeMenuItem; - } -} \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.cs deleted file mode 100644 index ea4785c000..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.cs +++ /dev/null @@ -1,433 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadForm : Form, IToolForm - { - // TODO: UpdateValues doesn't support all cores, and is probably wrong for gens, also done in an unsustainable way - // TODO: move _multiplayerMode to config, and support on load, also support being able to go back to single player mode. Also, more nuanced options are preferrable - private List Pads - { - get - { - return ControllerBox.Controls - .OfType() - .ToList(); - } - } - - private List CurrentFrameInputs - { - get - { - if (Global.Emulator.SystemId == "WSWAN") // Hack - Wonderswan mnemonics violate the 1 controller per pipe rule - { - return new[] - { - Global.MovieSession.Movie - .GetInput(Global.Emulator.Frame) - }.ToList(); - } - - return Global.MovieSession.Movie - .GetInput(Global.Emulator.Frame) - .Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries) - .ToList(); - } - } - - private readonly List SupportedMultiplayerPlatforms = new List - { - "A26", - "A78", - "NES", - "N64", - "SMS", - "SG", - "GG", - "PCE", - "PCECD", - "SGX", - "SNES", - "GEN", - "Coleco", - "C64", - "SAT" - }; - - private int _defaultWidth; - private int _defaultHeight; - - #region Public API - - public bool AskSave() { return true; } - public bool UpdateBefore { get { return false; } } - - public void ClearVirtualPadHolds() - { - ControllerBox.Controls - .OfType() - .ToList() - .ForEach(pad => pad.Clear()); - } - - public void Restart() - { - if (!IsHandleCreated || IsDisposed) - { - return; - } - - ControllerBox.Controls.Clear(); - LoadStartingPads(); - } - - public void UpdateValues() - { - if (!IsHandleCreated || IsDisposed) - { - return; - } - - if (Global.MovieSession.Movie.IsPlaying && !Global.MovieSession.Movie.IsFinished) - { - var inputs = CurrentFrameInputs; // THis is necessary because of the weird situation on the frame after the end of the movie, it goes into finished mode AFTER the input is read so this will be empty on that frame - if (inputs.Any()) - { - for (int i = 0; i < Pads.Count; i++) - { - Pads[i].SetButtons(inputs[i]); - } - } - } - else if (!Global.Config.VirtualPadSticky) - { - Pads.ForEach(pad => pad.Clear()); - } - - if (Global.MovieSession.Movie.IsActive && !Global.MovieSession.Movie.IsFinished) - { - Pads - .Where(x => x is VirtualPadN64) - .Cast() - .ToList() - .ForEach(x => - { - x.RefreshAnalog(); - }); - } - } - - public VirtualPadForm() - { - InitializeComponent(); - Closing += (o, e) => SaveConfigSettings(); - TopMost = Global.Config.VirtualPadSettings.TopMost; - } - - #endregion - - private void VirtualPadForm_Load(object sender, EventArgs e) - { - LoadConfigSettings(); - LoadStartingPads(); - if (Global.Config.VirtualPadMultiplayerMode) - { - SwitchToMultiplayer(); - } - } - - private void LoadConfigSettings() - { - _defaultWidth = Size.Width; - _defaultHeight = Size.Height; - - StickyBox.Checked = Global.Config.VirtualPadSticky; - - if (Global.Config.VirtualPadSettings.UseWindowPosition) - { - Location = Global.Config.VirtualPadSettings.WindowPosition; - } - - if (Global.Config.VirtualPadSettings.UseWindowPosition) - { - Size = Global.Config.VirtualPadSettings.WindowSize; - } - } - - private void SaveConfigSettings() - { - Global.Config.VirtualPadSettings.Wndx = Location.X; - Global.Config.VirtualPadSettings.Wndy = Location.Y; - Global.Config.VirtualPadSettings.Width = Right - Left; - Global.Config.VirtualPadSettings.Height = Bottom - Top; - } - - private void LoadStartingPads() - { - // Order matters! Add them in the of order of the mnemonic system - switch (Global.Emulator.SystemId) - { - case "A26": - ControllerBox.Controls.Add(new VirtualPadA26Control { Location = new Point(8, 109) }); - ControllerBox.Controls.Add(new VirtualPadA26 { Location = new Point(8, 19), Controller = "P1" }); - break; - case "A78": - ControllerBox.Controls.Add(new VirtualPadA78Control { Location = new Point(8, 125) }); - ControllerBox.Controls.Add(new VirtualPadA78 { Location = new Point(8, 19), Controller = "P1" }); - break; - case "NES": - ControllerBox.Controls.Add(new VirtualPadNESControl { Location = new Point(8, 109) }); - ControllerBox.Controls.Add(new VirtualPadNES { Location = new Point(8, 19), Controller = "P1" }); - break; - case "N64": - ControllerBox.Controls.Add(new VirtualPadN64Control { Location = new Point(8, 350) }); - ControllerBox.Controls.Add(new VirtualPadN64 { Location = new Point(8, 19), Controller = "P1" }); - break; - case "SMS": - case "SG": - case "GG": - ControllerBox.Controls.Add(new VirtualPadSMSControl { Location = new Point(8, 109) }); - ControllerBox.Controls.Add(new VirtualPadSMS { Location = new Point(8, 19), Controller = "P1" }); - break; - case "PCE": - case "PCECD": - case "SGX": - ControllerBox.Controls.Add(new VirtualPadPCE { Location = new Point(8, 19), Controller = "P1" }); - break; - case "SNES": - ControllerBox.Controls.Add(new VirtualPadSNESControl { Location = new Point(8, 170) }); - ControllerBox.Controls.Add(new VirtualPadSNES { Location = new Point(8, 19), Controller = "P1" }); - break; - case "GB": - case "GBC": - ControllerBox.Controls.Add(new VirtualPadGBControl { Location = new Point(8, 109) }); - ControllerBox.Controls.Add(new VirtualPadGB { Location = new Point(8, 19), Controller = string.Empty }); - break; - case "DGB": - ControllerBox.Controls.Add(new VirtualPadGBControl { Location = new Point(8, 109), Controller = string.Empty }); - ControllerBox.Controls.Add(new VirtualPadGB { Location = new Point(8, 19), Controller = "P1" }); - ControllerBox.Controls.Add(new VirtualPadGB { Location = new Point(188, 19), Controller = "P2" }); - break; - case "GBA": - ControllerBox.Controls.Add(new VirtualPadGBA { Location = new Point(8, 19), Controller = string.Empty }); - break; - case "GEN": - ControllerBox.Controls.Add(new VirtualPadNESControl { Location = new Point(8, 105) }); - ControllerBox.Controls.Add(new VirtualPadGen6Button { Location = new Point(8, 19), Controller = "P1" }); - break; - case "Coleco": - var coleco1 = new VirtualPadColeco { Location = new Point(8, 19), Controller = "P1" }; - ControllerBox.Controls.Add(coleco1); - break; - case "C64": - ControllerBox.Controls.Add(new VirtualPadA26 { Location = new Point(8, 159), Controller = "P1" }); - ControllerBox.Controls.Add(new VirtualPadC64Keyboard { Location = new Point(8, 19) }); - break; - case "SAT": - ControllerBox.Controls.Add(new VirtualPadSaturnControl { Location = new Point(8, 125) }); - ControllerBox.Controls.Add(new VirtualPadSaturn { Location = new Point(8, 19), Controller = "P1" }); - break; - case "WSWAN": - ControllerBox.Controls.Add(new VirtualPadWonderSawn { Location = new Point(8, 19) }); - break; - } - - // Hack for now - if (Global.Emulator.SystemId == "C64") - { - if (Width < 505) - { - Width = 505; - ControllerBox.Width = Width - 37; - } - } - } - - private void SwitchToMultiplayer() - { - switch (Global.Emulator.SystemId) - { - case "A26": - ControllerBox.Controls.Add(new VirtualPadA26 { Location = new Point(188, 19), Controller = "P2" }); - break; - case "A78": - ControllerBox.Controls.Add(new VirtualPadA78 { Location = new Point(150, 19), Controller = "P2" }); - break; - case "NES": - ControllerBox.Controls.Add(new VirtualPadNES { Location = new Point(188, 19), Controller = "P2" }); - break; - case "N64": - ControllerBox.Controls.Add(new VirtualPadN64 { Location = new Point(208, 19), Controller = "P2" }); - ControllerBox.Controls.Add(new VirtualPadN64 { Location = new Point(408, 19), Controller = "P3" }); - ControllerBox.Controls.Add(new VirtualPadN64 { Location = new Point(608, 19), Controller = "P4" }); - break; - case "SMS": - case "SG": - case "GG": - ControllerBox.Controls.Add(new VirtualPadSMS { Location = new Point(188, 19), Controller = "P2" }); - break; - case "PCE": - case "PCECD": - case "SGX": - ControllerBox.Controls.Add(new VirtualPadPCE { Location = new Point(188, 19), Controller = "P2" }); - ControllerBox.Controls.Add(new VirtualPadPCE { Location = new Point(8, 109), Controller = "P3" }); - ControllerBox.Controls.Add(new VirtualPadPCE { Location = new Point(188, 109), Controller = "P4" }); - break; - case "SNES": - ControllerBox.Controls.Add(new VirtualPadSNES { Location = new Point(188, 19), Controller = "P2" }); - ControllerBox.Controls.Add(new VirtualPadSNES { Location = new Point(8, 95), Controller = "P3" }); - ControllerBox.Controls.Add(new VirtualPadSNES { Location = new Point(188, 95), Controller = "P4" }); - break; - case "GEN": - ControllerBox.Controls.Add(new VirtualPadGen6Button { Location = new Point(195, 19), Controller = "P2" }); - break; - case "Coleco": - ControllerBox.Controls.Add(new VirtualPadColeco { Location = new Point(130, 19), Controller = "P2" }); - break; - case "C64": - ControllerBox.Controls.Add(new VirtualPadA26 { Location = new Point(218, 159), Controller = "P2" }); - break; - case "SAT": - ControllerBox.Controls.Add(new VirtualPadSaturn { Location = new Point(213, 19), Controller = "P2" }); - break; - } - - Global.Config.VirtualPadMultiplayerMode = true; - } - - public void BumpAnalogValue(int? dx, int? dy) // TODO: multi-player - { - // TODO: make an analog flag in virtualpads that have it, and check the virtualpads loaded, instead of doing this hardcoded - if (Pads[0] is VirtualPadN64) - { - (Pads[0] as VirtualPadN64).FudgeAnalog(dx, dy); - - UpdateValues(); - } - } - - private void RefreshFloatingWindowControl() - { - Owner = Global.Config.VirtualPadSettings.FloatingWindow ? null : GlobalWin.MainForm; - } - - #region Events - - #region Menu - - private void OptionsSubMenu_DropDownOpened(object sender, EventArgs e) - { - AutoloadMenuItem.Checked = Global.Config.AutoloadVirtualPad; - SaveWindowPositionMenuItem.Checked = Global.Config.VirtualPadSettings.SaveWindowPosition; - AlwaysOnTopMenuItem.Checked = Global.Config.VirtualPadSettings.TopMost; - FloatingWindowMenuItem.Checked = Global.Config.VirtualPadSettings.FloatingWindow; - } - - private void AutoloadMenuItem_Click(object sender, EventArgs e) - { - Global.Config.AutoloadVirtualPad ^= true; - } - - private void SaveWindowPositionMenuItem_Click(object sender, EventArgs e) - { - Global.Config.VirtualPadSettings.SaveWindowPosition ^= true; - } - - private void AlwaysOnTopMenuItem_Click(object sender, EventArgs e) - { - Global.Config.VirtualPadSettings.TopMost ^= true; - TopMost = Global.Config.VirtualPadSettings.TopMost; - } - - private void FloatingWindowMenuItem_Click(object sender, EventArgs e) - { - Global.Config.VirtualPadSettings.FloatingWindow ^= true; - RefreshFloatingWindowControl(); - } - - private void RestoreDefaultSettingsMenuItem_Click(object sender, EventArgs e) - { - Size = new Size(_defaultWidth, _defaultHeight); - - Global.Config.VirtualPadSettings.SaveWindowPosition = true; - Global.Config.VirtualPadSettings.TopMost = TopMost = false; - Global.Config.VirtualPadSettings.FloatingWindow = false; - Global.Config.VirtualPadMultiplayerMode = false; - SwitchToSinglePlayer(); - } - - private void ExitMenuItem_Click(object sender, EventArgs e) - { - Close(); - } - - #endregion - - #region Dialog, Controls, Context Menu - - protected override void OnClosed(EventArgs e) - { - Global.StickyXORAdapter.ClearStickies(); - Global.StickyXORAdapter.ClearStickyFloats(); - } - - private void ClearMenuItem_Click(object sender, EventArgs e) - { - ClearVirtualPadHolds(); - } - - private void StickyBox_CheckedChanged(object sender, EventArgs e) - { - Global.Config.VirtualPadSticky = StickyBox.Checked; - } - - protected override void OnShown(EventArgs e) - { - RefreshFloatingWindowControl(); - base.OnShown(e); - } - - private void SwitchToSinglePlayer() - { - var toRemove = Pads - .Where(pad => !string.IsNullOrEmpty(pad.Controller) && pad.Controller != "P1") - .ToList(); - - foreach (var pad in toRemove) - { - ControllerBox.Controls.Remove(pad as Control); - } - - Global.Config.VirtualPadMultiplayerMode = false; - } - - #endregion - - #endregion - - private void MultiplayerModeMenuItem_Click(object sender, EventArgs e) - { - if (Global.Config.VirtualPadMultiplayerMode) - { - SwitchToSinglePlayer(); - } - else - { - SwitchToMultiplayer(); - } - } - - private void PadsSubMenu_DropDownOpened(object sender, EventArgs e) - { - MultiplayerModeMenuItem.Enabled = SupportedMultiplayerPlatforms.Contains(Global.Emulator.SystemId); - MultiplayerModeMenuItem.Checked = Global.Config.VirtualPadMultiplayerMode; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.resx deleted file mode 100644 index 82b68187cf..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadForm.resx +++ /dev/null @@ -1,630 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 132, 17 - - - 17, 17 - - - - - AAABAAwAMDAQAAAABABoBgAAxgAAACAgEAAAAAQA6AIAAC4HAAAYGBAAAAAEAOgBAAAWCgAAEBAQAAAA - BAAoAQAA/gsAADAwAAAAAAgAqA4AACYNAAAgIAAAAAAIAKgIAADOGwAAGBgAAAAACADIBgAAdiQAABAQ - AAAAAAgAaAUAAD4rAAAwMAAAAAAgAKglAACmMAAAICAAAAAAIACoEAAATlYAABgYAAAAACAAiAkAAPZm - AAAQEAAAAAAgAGgEAAB+cAAAKAAAADAAAABgAAAAAQAEAAAAAACABAAAAAAAAAAAAAAQAAAAEAAAAAAA - AAAAAIAAAIAAAACAgACAAAAAgACAAICAAACAgIAAwMDAAAAA/wAA/wAAAP//AP8AAAD/AP8A//8AAP// - /wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAHR3AAAAAAAAAAAAAAAAAAAAAAAAAAAAdHdEcAAAAAAAAAAAAAAAAA - AAAAAAAAAHd0d3QAAAAAAAAAAAAAAAAAAAAAAAAAAEd8d3UAAAAAAAAAAAAAAAAAAAAAAAAAB3yHfHZw - AAAAAAAAAAAAAAAAAAAAAAAAd3fIyHVwAAAAAAAAAAAAAAAAAAAAAAAAfHh3jIxwAAAAAAAAAAAAAAAA - A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AAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAD///////8AAP///////wAA////////AAD///////8AAP///////wAA//////// - AAD///////8AAP///////wAA//h/////AAD/4D////8AAP/AP////wAA/8A/////AAD/gB////8AAP8A - H////wAA/wAf////AAD+AB////8AAP4AH////wAA/gAf////AAD8AB////8AAPwAH////wAA/AAP//// - AAD8AA////8AAPgAD//+BwAA+AAH//ADAAD4AAP/wAMAAPgAAP8AAwAA+AAAAAADAAD4AAAAAAMAAPgA - AAAABwAA+AAAAAAHAAD4AAAAAA8AAPgAAAAAHwAA/AAAAAA/AAD8AAAAAH8AAP4AAAAA/wAA/4AAAAP/ - AAD/4AAAB/8AAP/4AAAf/wAA/8AAAH//AAD8A+AD//8AAPgP/A///wAA////////AAD///////8AAP// - /////wAA////////AAD///////8AAP///////wAA////////AAAoAAAAIAAAAEAAAAABAAQAAAAAAAAC - AAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/ - AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdwAAAAAAAAAAAAAAAA - AAd0dAAAAAAAAAAAAAAAAAB3x3cAAAAAAAAAAAAAAAAAd3fHcAAAAAAAAAAAAAAAB3yMh3AAAAAAAAAA - AAAAAAfIeMdwAAAAAAAAAAAAAAAHjIyHQAAAAAAAAAAAAAAAfId4yHAAAAAAAAAAAAAAAHjIyIdQAAAA - AAAAAAAAAAB3iId4YAAAAAAAAAdwAAAAjIiIiIUAAAAAAHd3dAAAB4iIiHh8cAAAAHd3x4dwAAd4iIiI - h3Z3d3R3yIh4cAAHh4iIiIfHd3d4iIiIh3AAB3jHiIiIiHeHiIiIiIwAAAh3dXh4iMiIiIiIiIhwAAAA - yGd0d4iIeIi4iIiMAAAAAIeHd4iIh32IiIiIcAAAAAAAd4jIyIiIiHeHyAAAAAAAAAB3h4iIh8h3dwAA - AAAAAAAIh8fIh4eIaAAAAAAAAACIiHAAB8jIyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////// - ////////////////////n////g////wP///8B///+Af///gH///4B///8Af///AH///wB//n8AP/A+AB - /AHgAAAB4AAAAeAAAAPgAAAH8AAAD/AAAB/8AAA//wAA//4AA//weA////////////////////////// - //8oAAAAGAAAADAAAAABAAQAAAAAACABAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAgAAAgAAAAICAAIAA - AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHRwAAAAAAAAAAAAB3dAAAAAAAAAAAAA - d8dwAAAAAAAAAAAAfId3AAAAAAAAAAAHeMjHAAAAAAAAAAAHyHh3AAAAAAAAAAAHh3eEAAAAAAAAAAAI - yIiHAAAAAHd2cAAIiIiIQAAAd3d4UACHiIiId3d3eHiIcACHh4iIyHeHiIiIcAAIR3d4iIiIiIiMAAAH - d3eIh3iIiIhwAAAAeMh4iIiHiMAAAAAAAHfIiMh4aAAAAAAAiIgHyIfIAAAAAAAIgAAAAIAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8A////AP///wD8f/8A+H//APB/ - /wDwP/8A4D//AOA//wDgP/8A4D/BAOAfAQDAAAEAwAABAOAAAwDgAAcA8AAfAPwAPwDwgP8A5/f/AP// - /wD///8A////ACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACA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AAAAAAAAAAAAAAAAAAA0rXj+rpInTBDcHCz5NW/ucG5u7GAM1QAAAAAAAAAAAAAAAAA - AAAAAAAAAADLytDi9tOemQAAAAAAUy9EecLEsa1uPTUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPj11Mme - VakAAAAAAAAAAAAATS84M0akAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAD///////8AAP///////wAA////////AAD///////8AAP///////wAA//////// - AAD///////8AAP///////wAA//h/////AAD/4D////8AAP/AP////wAA/8A/////AAD/gB////8AAP8A - H////wAA/wAf////AAD+AB////8AAP4AH////wAA/gAf////AAD8AB////8AAPwAH////wAA/AAP//// - AAD8AA////8AAPgAD//+BwAA+AAH//ADAAD4AAP/wAMAAPgAAP8AAwAA+AAAAAADAAD4AAAAAAMAAPgA - AAAABwAA+AAAAAAHAAD4AAAAAA8AAPgAAAAAHwAA/AAAAAA/AAD8AAAAAH8AAP4AAAAA/wAA/4AAAAP/ - AAD/4AAAB/8AAP/4AAAf/wAA/8AAAH//AAD8A+AD//8AAPgP/A///wAA////////AAD///////8AAP// - /////wAA////////AAD///////8AA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AAAAAc4yc - tsHKysPAriIKAAAAAAAAABYgRk1LTX+DEAAAAABukqXB4ejo4dHPQCIEChcXEwggTXV/k66unKMpAAAA - AG6Srsro6ero0dN/Rk1NRk2Dg4STrsbh4cHAt2sAAAAAbpKuOXPe6ajW15KGg4OGk528yuHo5eHPz882 - AAAAAAB4jCkDAxSoMabXt5yjt8ro3ePo5dbT09HTdAAAAAAAAABGcBFoGgFwdtfDwHxi2dpmZcrX09HP - z0MAAAAAAAAAAHh/qWwaOa6cz9PNZGPYsdzbzc3DwLk2AAAAAAAAAAAAAAAvhpKakoyg19HNyKS5wHtb - orZ/cwAAAAAAAAAAAAAAAAAANkaKWVm5zb1gYV6cXVxfNgAAAAAAAAAAAAAAAAAAALGvlTIuP1K5tqCR - l4xfLwAAAAAAAAAAAAAAAAAAsbPBenkAAAAAcCVYjE0scwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////+f///+D////A////wH - ///4B///+Af///gH///wB///8Af///AH/+fwA/8D4AH8AeAAAAHgAAAB4AAAA+AAAAfwAAAP8AAAH/wA - AD//AAD//gAD//B4D////////////////////////////ygAAAAYAAAAMAAAAAEACAAAAAAAQAIAAAAA - AAAAAAAAAAEAAAABAAAAAAAAWlJSAHBJSQB1SEgAe1dXAHdYWAB5WlkAel1dAGBiYgB1bGwAfWtrAHh2 - dgB9fn4Ag01NAIRXVwCIV1cAhV9eAItbWgCgX14ApV1dAJhgXwCNYGAAnWtqAJhtbQCCdnYAh3x8AI15 - eACeensAqGBgAKhoZwCga2oArGpqALNqagCzb28AtG1tALltbQCxb3AApnVzAKl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AAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAP// - /////wAA////////AAD///////8AAP///////wAA////////AAD/+H////8AAP/gH////wAA/8Af//// - AAD/gA////8AAP+AD////wAA/wAP////AAD/AA////8AAP4AB////wAA/gAH////AAD8AAf///8AAPwA - B////wAA/AAH////AAD8AAf///8AAPgAB////wAA+AAH//4HAAD4AAP/8AEAAPgAAf/AAQAA8AAA/wAA - AADwAAAAAAAAAPAAAAAAAAAA8AAAAAAAAADwAAAAAAEAAPAAAAAAAQAA8AAAAAADAADwAAAAAAcAAPAA - AAAADwAA+AAAAAAfAAD4AAAAAD8AAPwAAAAAfwAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP//AADh/wAAwf8AAMH/ - AACB/wAAgfkAAIDAAACAAAAAgAAAAIAAAACAAQAAAAcAAAAPAAAOfwAA//8AAA== - - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGB.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGB.cs deleted file mode 100644 index 110b6cf656..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGB.cs +++ /dev/null @@ -1,263 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadGB : VirtualPad - { - - public VirtualPadGB() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(52, 24); - ButtonPoints[5] = new Point(74, 24); - ButtonPoints[6] = new Point(122, 24); - ButtonPoints[7] = new Point(146, 24); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "s", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "S", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 7, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "A", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "s" : "."); - input.Append(B2.Checked ? "S" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[6] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[7] == '.') B4.Checked = false; else B4.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "GB") - { - return; - } - else if (sender == PU) - { - Global.StickyXORAdapter.SetSticky("Up", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky("Down", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky("Left", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky("Right", PR.Checked); - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Select", B1.Checked); - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Start", B2.Checked); - } - else if (sender == B3) - { - Global.StickyXORAdapter.SetSticky("B", B3.Checked); - } - else if (sender == B4) - { - Global.StickyXORAdapter.SetSticky("A", B4.Checked); - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "GB") return; - - - if (PU.Checked) Global.StickyXORAdapter.SetSticky("Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky("Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky("Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky("Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Select", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Start", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky("B", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky("A", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBA.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBA.cs deleted file mode 100644 index 1a689aaa15..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBA.cs +++ /dev/null @@ -1,282 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - class VirtualPadGBA : VirtualPad - { - public VirtualPadGBA() - { - ButtonPoints[0] = new Point(36, 2); - ButtonPoints[1] = new Point(36, 46); - ButtonPoints[2] = new Point(24, 24); - ButtonPoints[3] = new Point(46, 24); - ButtonPoints[4] = new Point(72, 24); - ButtonPoints[5] = new Point(94, 24); - ButtonPoints[6] = new Point(122, 24); - ButtonPoints[7] = new Point(146, 24); - ButtonPoints[8] = new Point(2, 2); - ButtonPoints[9] = new Point(166, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(194, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "s", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "S", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 7, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "A", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - B5 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[8], - TabIndex = 8, - Text = "L", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B5.CheckedChanged += Buttons_CheckedChanged; - - B6 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[9], - TabIndex = 8, - Text = "R", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B6.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - Controls.Add(B5); - Controls.Add(B6); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "s" : "."); - input.Append(B2.Checked ? "S" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append(B5.Checked ? "L" : "."); - input.Append(B6.Checked ? "R" : "."); - - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[6] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[7] == '.') B4.Checked = false; else B4.Checked = true; - if (buttons[8] == '.') B5.Checked = false; else B5.Checked = true; - if (buttons[9] == '.') B6.Checked = false; else B6.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "GBA") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky("Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky("Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky("Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky("Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky("Select", B1.Checked); - else if (sender == B2) - Global.StickyXORAdapter.SetSticky("Start", B2.Checked); - else if (sender == B3) - Global.StickyXORAdapter.SetSticky("B", B3.Checked); - else if (sender == B4) - Global.StickyXORAdapter.SetSticky("A", B4.Checked); - else if (sender == B5) - Global.StickyXORAdapter.SetSticky("L", B5.Checked); - else if (sender == B6) - Global.StickyXORAdapter.SetSticky("R", B6.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "GBA") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky("Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky("Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky("Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky("Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Select", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Start", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky("B", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky("A", false); - if (B5.Checked) Global.StickyXORAdapter.SetSticky("L", false); - if (B6.Checked) Global.StickyXORAdapter.SetSticky("R", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - B5.Checked = false; - B6.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBControl.cs deleted file mode 100644 index f9f269883b..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGBControl.cs +++ /dev/null @@ -1,122 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadGBControl : VirtualPad - { - public VirtualPadGBControl() - { - ButtonPoints[0] = new Point(2, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Power", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - Controls.Add(B1); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B2.Checked ? "r" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 1) return; - if (buttons[0] == '.' || buttons[0] == 'l' || buttons[0] == '0') - { - B2.Checked = false; - } - else - { - B2.Checked = true; - } - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "GB") - { - return; - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - if (B1.Checked) - { - B1.BackColor = Color.Pink; - } - else - { - B1.BackColor = SystemColors.Control; - } - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "GB") - { - return; - } - - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Power", false); - - B1.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen3Button.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen3Button.cs deleted file mode 100644 index a85265340a..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen3Button.cs +++ /dev/null @@ -1,239 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - class VirtualPadGen3Button : VirtualPad - { - public VirtualPadGen3Button() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(146, 36); - ButtonPoints[5] = new Point(122, 2); - ButtonPoints[6] = new Point(122, 36); - ButtonPoints[7] = new Point(98, 36); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "C", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "S", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 7, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "A", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - switch (keyData) - { - case Keys.Up: - Refresh(); - break; - case Keys.Down: - Refresh(); - break; - case Keys.Left: - Refresh(); - break; - case Keys.Right: - Refresh(); - break; - case Keys.Tab: - Refresh(); - break; - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "C" : "."); - input.Append(B2.Checked ? "S" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[6] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[7] == '.') B4.Checked = false; else B4.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "GEN") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky(Controller + " C", B1.Checked); - else if (sender == B2) - Global.StickyXORAdapter.SetSticky(Controller + " Start", B2.Checked); - else if (sender == B3) - Global.StickyXORAdapter.SetSticky(Controller + " B", B3.Checked); - else if (sender == B4) - Global.StickyXORAdapter.SetSticky(Controller + " A", B4.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "GEN") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " C", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Start", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky(Controller + " A", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.Designer.cs deleted file mode 100644 index 4d19eae9c4..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.Designer.cs +++ /dev/null @@ -1,228 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadGen6Button - { - /// - /// 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.BStart = new System.Windows.Forms.CheckBox(); - this.BZ = new System.Windows.Forms.CheckBox(); - this.BX = new System.Windows.Forms.CheckBox(); - this.BY = new System.Windows.Forms.CheckBox(); - this.BC = new System.Windows.Forms.CheckBox(); - this.BA = new System.Windows.Forms.CheckBox(); - this.BB = new System.Windows.Forms.CheckBox(); - this.PL = new System.Windows.Forms.CheckBox(); - this.PD = new System.Windows.Forms.CheckBox(); - this.PR = new System.Windows.Forms.CheckBox(); - this.PU = new System.Windows.Forms.CheckBox(); - this.BM = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // BStart - // - this.BStart.Appearance = System.Windows.Forms.Appearance.Button; - this.BStart.AutoSize = true; - this.BStart.Location = new System.Drawing.Point(74, 28); - this.BStart.Name = "BStart"; - this.BStart.Size = new System.Drawing.Size(24, 23); - this.BStart.TabIndex = 31; - this.BStart.Text = "S"; - this.BStart.UseVisualStyleBackColor = true; - this.BStart.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BZ - // - this.BZ.Appearance = System.Windows.Forms.Appearance.Button; - this.BZ.AutoSize = true; - this.BZ.Location = new System.Drawing.Point(153, 4); - this.BZ.Name = "BZ"; - this.BZ.Size = new System.Drawing.Size(24, 23); - this.BZ.TabIndex = 30; - this.BZ.Text = "Z"; - this.BZ.UseVisualStyleBackColor = true; - this.BZ.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BX - // - this.BX.Appearance = System.Windows.Forms.Appearance.Button; - this.BX.AutoSize = true; - this.BX.Location = new System.Drawing.Point(103, 14); - this.BX.Name = "BX"; - this.BX.Size = new System.Drawing.Size(24, 23); - this.BX.TabIndex = 29; - this.BX.Text = "X"; - this.BX.UseVisualStyleBackColor = true; - this.BX.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BY - // - this.BY.Appearance = System.Windows.Forms.Appearance.Button; - this.BY.AutoSize = true; - this.BY.Location = new System.Drawing.Point(128, 9); - this.BY.Name = "BY"; - this.BY.Size = new System.Drawing.Size(24, 23); - this.BY.TabIndex = 28; - this.BY.Text = "Y"; - this.BY.UseVisualStyleBackColor = true; - this.BY.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BC - // - this.BC.Appearance = System.Windows.Forms.Appearance.Button; - this.BC.AutoSize = true; - this.BC.Location = new System.Drawing.Point(154, 31); - this.BC.Name = "BC"; - this.BC.Size = new System.Drawing.Size(24, 23); - this.BC.TabIndex = 27; - this.BC.Text = "C"; - this.BC.UseVisualStyleBackColor = true; - this.BC.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BA - // - this.BA.Appearance = System.Windows.Forms.Appearance.Button; - this.BA.AutoSize = true; - this.BA.Location = new System.Drawing.Point(104, 41); - this.BA.Name = "BA"; - this.BA.Size = new System.Drawing.Size(24, 23); - this.BA.TabIndex = 26; - this.BA.Text = "A"; - this.BA.UseVisualStyleBackColor = true; - this.BA.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BB - // - this.BB.Appearance = System.Windows.Forms.Appearance.Button; - this.BB.AutoSize = true; - this.BB.Location = new System.Drawing.Point(129, 36); - this.BB.Name = "BB"; - this.BB.Size = new System.Drawing.Size(24, 23); - this.BB.TabIndex = 25; - this.BB.Text = "B"; - this.BB.UseVisualStyleBackColor = true; - this.BB.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(4, 28); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 24; - this.PL.UseVisualStyleBackColor = true; - this.PL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(25, 37); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 23; - this.PD.UseVisualStyleBackColor = true; - this.PD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(46, 28); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 22; - this.PR.UseVisualStyleBackColor = true; - this.PR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(25, 16); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 21; - this.PU.UseVisualStyleBackColor = true; - this.PU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BM - // - this.BM.Appearance = System.Windows.Forms.Appearance.Button; - this.BM.AutoSize = true; - this.BM.Location = new System.Drawing.Point(63, 56); - this.BM.Name = "BM"; - this.BM.Size = new System.Drawing.Size(26, 23); - this.BM.TabIndex = 32; - this.BM.Text = "M"; - this.BM.UseVisualStyleBackColor = true; - this.BM.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadGen6Button - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.BM); - this.Controls.Add(this.BStart); - this.Controls.Add(this.BZ); - this.Controls.Add(this.BX); - this.Controls.Add(this.BY); - this.Controls.Add(this.BC); - this.Controls.Add(this.BA); - this.Controls.Add(this.BB); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Name = "VirtualPadGen6Button"; - this.Size = new System.Drawing.Size(181, 83); - this.Load += new System.EventHandler(this.VirtualPadGen6Button_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox BStart; - private System.Windows.Forms.CheckBox BZ; - private System.Windows.Forms.CheckBox BX; - private System.Windows.Forms.CheckBox BY; - private System.Windows.Forms.CheckBox BC; - private System.Windows.Forms.CheckBox BA; - private System.Windows.Forms.CheckBox BB; - private System.Windows.Forms.CheckBox PL; - private System.Windows.Forms.CheckBox PD; - private System.Windows.Forms.CheckBox PR; - private System.Windows.Forms.CheckBox PU; - private System.Windows.Forms.CheckBox BM; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.cs deleted file mode 100644 index e7f0d7acdd..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.cs +++ /dev/null @@ -1,193 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadGen6Button : UserControl, IVirtualPad - { - public string Controller { get; set; } - - public VirtualPadGen6Button() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - InitializeComponent(); - - Controller = "P1"; - } - - private void VirtualPadGen6Button_Load(object sender, EventArgs e) - { - - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - // TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(BA.Checked ? "A" : "."); - input.Append(BB.Checked ? "B" : "."); - input.Append(BC.Checked ? "C" : "."); - - input.Append(BStart.Checked ? "S" : "."); - - input.Append(BX.Checked ? "X" : "."); - input.Append(BY.Checked ? "Y" : "."); - input.Append(BZ.Checked ? "Z" : "."); - - input.Append(BM.Checked ? "M" : "."); - - input.Append("|"); - return input.ToString(); - } - - public void Clear() - { - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - - if (BA.Checked) Global.StickyXORAdapter.SetSticky(Controller + " A", false); - if (BB.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - if (BC.Checked) Global.StickyXORAdapter.SetSticky(Controller + " C", false); - - if (BStart.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Start", false); - - if (BX.Checked) Global.StickyXORAdapter.SetSticky(Controller + " X", false); - if (BY.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Y", false); - if (BZ.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Z", false); - - if (BM.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Mode", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - BStart.Checked = false; - - BA.Checked = false; - BB.Checked = false; - BC.Checked = false; - - BX.Checked = false; - BY.Checked = false; - BZ.Checked = false; - - BM.Checked = false; - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 12) return; - - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') BA.Checked = false; else BA.Checked = true; - if (buttons[5] == '.') BB.Checked = false; else BB.Checked = true; - if (buttons[6] == '.') BC.Checked = false; else BC.Checked = true; - - if (buttons[7] == '.') BStart.Checked = false; else BStart.Checked = true; - - if (buttons[8] == '.') BX.Checked = false; else BX.Checked = true; - if (buttons[9] == '.') BY.Checked = false; else BY.Checked = true; - if (buttons[10] == '.') BZ.Checked = false; else BZ.Checked = true; - - if (buttons[11] == '.') BM.Checked = false; else BM.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (sender == PU) - { - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - } - - else if (sender == BA) - { - Global.StickyXORAdapter.SetSticky(Controller + " A", BA.Checked); - } - else if (sender == BB) - { - Global.StickyXORAdapter.SetSticky(Controller + " B", BB.Checked); - } - else if (sender == BC) - { - Global.StickyXORAdapter.SetSticky(Controller + " C", BC.Checked); - } - - else if (sender == BStart) - { - Global.StickyXORAdapter.SetSticky(Controller + " Start", BStart.Checked); - } - else if (sender == BX) - { - Global.StickyXORAdapter.SetSticky(Controller + " X", BX.Checked); - } - else if (sender == BY) - { - Global.StickyXORAdapter.SetSticky(Controller + " Y", BY.Checked); - } - else if (sender == BZ) - { - Global.StickyXORAdapter.SetSticky(Controller + " Z", BZ.Checked); - } - - else if (sender == BM) - { - Global.StickyXORAdapter.SetSticky(Controller + " Mode", BM.Checked); - } - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadGen6Button.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.Designer.cs deleted file mode 100644 index 4ee3cfe636..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.Designer.cs +++ /dev/null @@ -1,419 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadN64 - { - /// - /// 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.ManualX = new System.Windows.Forms.NumericUpDown(); - this.ManualY = new System.Windows.Forms.NumericUpDown(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); - this.CD = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.CR = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.CL = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.CU = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BA = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BB = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BZ = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BS = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BR = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.BL = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.PL = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.PD = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.PR = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.PU = new BizHawk.Client.EmuHawk.VirtualPadButton(); - this.AnalogControl1 = new BizHawk.Client.EmuHawk.AnalogControlPanel(); - ((System.ComponentModel.ISupportInitialize)(this.ManualX)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.ManualY)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); - this.SuspendLayout(); - // - // ManualX - // - this.ManualX.Location = new System.Drawing.Point(144, 30); - this.ManualX.Maximum = new decimal(new int[] { - 127, - 0, - 0, - 0}); - this.ManualX.Minimum = new decimal(new int[] { - 127, - 0, - 0, - -2147483648}); - this.ManualX.Name = "ManualX"; - this.ManualX.Size = new System.Drawing.Size(47, 20); - this.ManualX.TabIndex = 20; - this.ManualX.ValueChanged += new System.EventHandler(this.ManualX_ValueChanged); - this.ManualX.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ManualX_KeyUp); - // - // ManualY - // - this.ManualY.Location = new System.Drawing.Point(144, 69); - this.ManualY.Maximum = new decimal(new int[] { - 127, - 0, - 0, - 0}); - this.ManualY.Minimum = new decimal(new int[] { - 127, - 0, - 0, - -2147483648}); - this.ManualY.Name = "ManualY"; - this.ManualY.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.ManualY.Size = new System.Drawing.Size(47, 20); - this.ManualY.TabIndex = 21; - this.ManualY.ValueChanged += new System.EventHandler(this.ManualY_ValueChanged); - this.ManualY.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ManualY_KeyUp); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(144, 14); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(14, 13); - this.label1.TabIndex = 22; - this.label1.Text = "X"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(144, 53); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(14, 13); - this.label2.TabIndex = 23; - this.label2.Text = "Y"; - // - // numericUpDown1 - // - this.numericUpDown1.Location = new System.Drawing.Point(4, 269); - this.numericUpDown1.Maximum = new decimal(new int[] { - 127, - 0, - 0, - 0}); - this.numericUpDown1.Minimum = new decimal(new int[] { - 127, - 0, - 0, - -2147483648}); - this.numericUpDown1.Name = "numericUpDown1"; - this.numericUpDown1.Size = new System.Drawing.Size(55, 20); - this.numericUpDown1.TabIndex = 24; - this.numericUpDown1.TabStop = false; - this.numericUpDown1.Value = new decimal(new int[] { - 127, - 0, - 0, - 0}); - this.numericUpDown1.Visible = false; - this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); - // - // numericUpDown2 - // - this.numericUpDown2.Location = new System.Drawing.Point(4, 292); - this.numericUpDown2.Maximum = new decimal(new int[] { - 127, - 0, - 0, - 0}); - this.numericUpDown2.Minimum = new decimal(new int[] { - 127, - 0, - 0, - -2147483648}); - this.numericUpDown2.Name = "numericUpDown2"; - this.numericUpDown2.Size = new System.Drawing.Size(55, 20); - this.numericUpDown2.TabIndex = 25; - this.numericUpDown2.TabStop = false; - this.numericUpDown2.Value = new decimal(new int[] { - 127, - 0, - 0, - -2147483648}); - this.numericUpDown2.Visible = false; - this.numericUpDown2.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged); - // - // CD - // - this.CD.Appearance = System.Windows.Forms.Appearance.Button; - this.CD.AutoSize = true; - this.CD.ForeColor = System.Drawing.Color.Black; - this.CD.Location = new System.Drawing.Point(147, 281); - this.CD.Name = "CD"; - this.CD.Size = new System.Drawing.Size(31, 23); - this.CD.TabIndex = 17; - this.CD.TabStop = false; - this.CD.Text = "cD"; - this.CD.UseVisualStyleBackColor = true; - // - // CR - // - this.CR.Appearance = System.Windows.Forms.Appearance.Button; - this.CR.AutoSize = true; - this.CR.ForeColor = System.Drawing.Color.Black; - this.CR.Location = new System.Drawing.Point(164, 258); - this.CR.Name = "CR"; - this.CR.Size = new System.Drawing.Size(31, 23); - this.CR.TabIndex = 16; - this.CR.TabStop = false; - this.CR.Text = "cR"; - this.CR.UseVisualStyleBackColor = true; - // - // CL - // - this.CL.Appearance = System.Windows.Forms.Appearance.Button; - this.CL.AutoSize = true; - this.CL.ForeColor = System.Drawing.Color.Black; - this.CL.Location = new System.Drawing.Point(129, 258); - this.CL.Name = "CL"; - this.CL.Size = new System.Drawing.Size(29, 23); - this.CL.TabIndex = 15; - this.CL.TabStop = false; - this.CL.Text = "cL"; - this.CL.UseVisualStyleBackColor = true; - // - // CU - // - this.CU.Appearance = System.Windows.Forms.Appearance.Button; - this.CU.AutoSize = true; - this.CU.ForeColor = System.Drawing.Color.Black; - this.CU.Location = new System.Drawing.Point(147, 235); - this.CU.Name = "CU"; - this.CU.Size = new System.Drawing.Size(31, 23); - this.CU.TabIndex = 14; - this.CU.TabStop = false; - this.CU.Text = "cU"; - this.CU.UseVisualStyleBackColor = true; - // - // BA - // - this.BA.Appearance = System.Windows.Forms.Appearance.Button; - this.BA.AutoSize = true; - this.BA.ForeColor = System.Drawing.Color.Black; - this.BA.Location = new System.Drawing.Point(113, 206); - this.BA.Name = "BA"; - this.BA.Size = new System.Drawing.Size(24, 23); - this.BA.TabIndex = 13; - this.BA.TabStop = false; - this.BA.Text = "A"; - this.BA.UseVisualStyleBackColor = true; - // - // BB - // - this.BB.Appearance = System.Windows.Forms.Appearance.Button; - this.BB.AutoSize = true; - this.BB.ForeColor = System.Drawing.Color.Black; - this.BB.Location = new System.Drawing.Point(83, 195); - this.BB.Name = "BB"; - this.BB.Size = new System.Drawing.Size(24, 23); - this.BB.TabIndex = 12; - this.BB.TabStop = false; - this.BB.Text = "B"; - this.BB.UseVisualStyleBackColor = true; - // - // BZ - // - this.BZ.Appearance = System.Windows.Forms.Appearance.Button; - this.BZ.AutoSize = true; - this.BZ.ForeColor = System.Drawing.Color.Black; - this.BZ.Location = new System.Drawing.Point(74, 245); - this.BZ.Name = "BZ"; - this.BZ.Size = new System.Drawing.Size(24, 23); - this.BZ.TabIndex = 11; - this.BZ.TabStop = false; - this.BZ.Text = "Z"; - this.BZ.UseVisualStyleBackColor = true; - // - // BS - // - this.BS.Appearance = System.Windows.Forms.Appearance.Button; - this.BS.AutoSize = true; - this.BS.ForeColor = System.Drawing.Color.Black; - this.BS.Location = new System.Drawing.Point(87, 157); - this.BS.Name = "BS"; - this.BS.Size = new System.Drawing.Size(24, 23); - this.BS.TabIndex = 10; - this.BS.TabStop = false; - this.BS.Text = "S"; - this.BS.UseVisualStyleBackColor = true; - // - // BR - // - this.BR.Appearance = System.Windows.Forms.Appearance.Button; - this.BR.AutoSize = true; - this.BR.ForeColor = System.Drawing.Color.Black; - this.BR.Location = new System.Drawing.Point(172, 148); - this.BR.Name = "BR"; - this.BR.Size = new System.Drawing.Size(25, 23); - this.BR.TabIndex = 9; - this.BR.TabStop = false; - this.BR.Text = "R"; - this.BR.UseVisualStyleBackColor = true; - // - // BL - // - this.BL.Appearance = System.Windows.Forms.Appearance.Button; - this.BL.AutoSize = true; - this.BL.ForeColor = System.Drawing.Color.Black; - this.BL.Location = new System.Drawing.Point(3, 148); - this.BL.Name = "BL"; - this.BL.Size = new System.Drawing.Size(23, 23); - this.BL.TabIndex = 8; - this.BL.TabStop = false; - this.BL.Text = "L"; - this.BL.UseVisualStyleBackColor = true; - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.ForeColor = System.Drawing.Color.Black; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(3, 207); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 7; - this.PL.TabStop = false; - this.PL.UseVisualStyleBackColor = true; - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.ForeColor = System.Drawing.Color.Black; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(24, 216); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 6; - this.PD.TabStop = false; - this.PD.UseVisualStyleBackColor = true; - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.ForeColor = System.Drawing.Color.Black; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(45, 207); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 5; - this.PR.TabStop = false; - this.PR.UseVisualStyleBackColor = true; - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.ForeColor = System.Drawing.Color.Black; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(24, 195); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 4; - this.PU.TabStop = false; - this.PU.UseVisualStyleBackColor = true; - // - // AnalogControl1 - // - this.AnalogControl1.BackColor = System.Drawing.Color.Transparent; - this.AnalogControl1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.AnalogControl1.Location = new System.Drawing.Point(6, 14); - this.AnalogControl1.Name = "AnalogControl1"; - this.AnalogControl1.Size = new System.Drawing.Size(132, 132); - this.AnalogControl1.TabIndex = 0; - this.AnalogControl1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AnalogControl1_MouseClick); - this.AnalogControl1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.AnalogControl1_MouseMove); - // - // VirtualPadN64 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.numericUpDown2); - this.Controls.Add(this.numericUpDown1); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Controls.Add(this.ManualY); - this.Controls.Add(this.ManualX); - this.Controls.Add(this.CD); - this.Controls.Add(this.CR); - this.Controls.Add(this.CL); - this.Controls.Add(this.CU); - this.Controls.Add(this.BA); - this.Controls.Add(this.BB); - this.Controls.Add(this.BZ); - this.Controls.Add(this.BS); - this.Controls.Add(this.BR); - this.Controls.Add(this.BL); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Controls.Add(this.AnalogControl1); - this.Name = "VirtualPadN64"; - this.Size = new System.Drawing.Size(200, 316); - this.Load += new System.EventHandler(this.UserControl1_Load); - ((System.ComponentModel.ISupportInitialize)(this.ManualX)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.ManualY)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private AnalogControlPanel AnalogControl1; - private VirtualPadButton PL; - private VirtualPadButton PD; - private VirtualPadButton PR; - private VirtualPadButton PU; - private VirtualPadButton BL; - private VirtualPadButton BR; - private VirtualPadButton BS; - private VirtualPadButton BZ; - private VirtualPadButton BB; - private VirtualPadButton BA; - private VirtualPadButton CU; - private VirtualPadButton CL; - private VirtualPadButton CR; - private VirtualPadButton CD; - private System.Windows.Forms.NumericUpDown ManualY; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.NumericUpDown ManualX; - private System.Windows.Forms.NumericUpDown numericUpDown1; - private System.Windows.Forms.NumericUpDown numericUpDown2; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.cs deleted file mode 100644 index 096998e74f..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.cs +++ /dev/null @@ -1,263 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; -using System.Collections.Generic; -using System.Linq; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadN64 : UserControl, IVirtualPad - { - private string _controllerNum = string.Empty; - public string Controller - { - get - { - return _controllerNum; - } - - set - { - AnalogControl1.Controller = _controllerNum = value; - } - } - - private int old_X = 0; - private int old_Y = 0; - - public VirtualPadN64() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - InitializeComponent(); - - Controller = "P1"; - } - - private void UserControl1_Load(object sender, EventArgs e) - { - // adelikat: What's wrong with having this on players 2 - 4? - if (Controller == "P1") - { - numericUpDown1.Visible = true; - numericUpDown2.Visible = true; - } - - PU.ControllerButton = Controller + " Up"; - PD.ControllerButton = Controller + " Down"; - PL.ControllerButton = Controller + " Left"; - PR.ControllerButton = Controller + " Right"; - - BA.ControllerButton = Controller + " A"; - BB.ControllerButton = Controller + " B"; - BZ.ControllerButton = Controller + " Z"; - - BS.ControllerButton = Controller + " Start"; - - BL.ControllerButton = Controller + " L"; - BR.ControllerButton = Controller + " R"; - - CU.ControllerButton = Controller + " C Up"; - CD.ControllerButton = Controller + " C Down"; - CL.ControllerButton = Controller + " C Left"; - CR.ControllerButton = Controller + " C Right"; - } - - public void Clear() - { - if (Global.Emulator.SystemId != "N64") - { - return; - } - - foreach (var button in Buttons) - { - button.Clear(); - AnalogControl1.Clear(); - } - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 14) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - if (buttons[4] == '.') BB.Checked = false; else BB.Checked = true; - if (buttons[5] == '.') BA.Checked = false; else BA.Checked = true; - if (buttons[6] == '.') BZ.Checked = false; else BZ.Checked = true; - if (buttons[7] == '.') BS.Checked = false; else BS.Checked = true; - if (buttons[8] == '.') BL.Checked = false; else BL.Checked = true; - if (buttons[9] == '.') BR.Checked = false; else BR.Checked = true; - if (buttons[10] == '.') CU.Checked = false; else CU.Checked = true; - if (buttons[11] == '.') CD.Checked = false; else CD.Checked = true; - if (buttons[12] == '.') CL.Checked = false; else CL.Checked = true; - if (buttons[13] == '.') CR.Checked = false; else CR.Checked = true; - - int x = 0; - int y = 0; - x = int.Parse(buttons.Substring(14, 4)); - y = int.Parse(buttons.Substring(19, 4)); - - set_analog(true, x, y); - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(BB.Checked ? "B" : "."); - input.Append(BA.Checked ? "A" : "."); - input.Append(BZ.Checked ? "Z" : "."); - input.Append(BS.Checked ? "S" : "."); - - input.Append(BL.Checked ? "L" : "."); - input.Append(BR.Checked ? "R" : "."); - - input.Append(CU.Checked ? "u" : "."); - input.Append(CD.Checked ? "d" : "."); - input.Append(CL.Checked ? "l" : "."); - input.Append(CR.Checked ? "r" : "."); - input.Append(String.Format("{0:000}", AnalogControl1.X + 128)); - input.Append(String.Format("{0:000}", AnalogControl1.Y + 128)); - - input.Append("|"); - return input.ToString(); - } - - private void AnalogControl1_MouseClick(object sender, MouseEventArgs e) - { - set_analog(AnalogControl1.HasValue, AnalogControl1.X, AnalogControl1.Y); - } - - private void AnalogControl1_MouseMove(object sender, MouseEventArgs e) - { - set_analog(AnalogControl1.HasValue, AnalogControl1.X, AnalogControl1.Y); - } - - private void ManualX_ValueChanged(object sender, EventArgs e) - { - SetAnalogControlFromNumerics(); - } - - private void ManualY_ValueChanged(object sender, EventArgs e) - { - SetAnalogControlFromNumerics(); - } - - public void RefreshAnalog() - { - AnalogControl1.Refresh(); - } - - public void set_analog(bool hasValue, int X, int Y) - { - int? x = hasValue ? X : (int?)null; - int? y = hasValue ? Y : (int?)null; - Global.StickyXORAdapter.SetFloat(Controller + " X Axis", x); - Global.StickyXORAdapter.SetFloat(Controller + " Y Axis", y); - - AnalogControl1.X = X; - AnalogControl1.Y = Y; - AnalogControl1.Refresh(); - - old_X = X; - old_Y = Y; - ManualX.Value = X; - ManualY.Value = Y; - } - - //TODO: multiplayer - public void FudgeAnalog(int? dx, int? dy) - { - int newx = AnalogControl1.X; - int newy = AnalogControl1.Y; - if (dx.HasValue) - { - newx = AnalogControl1.X + dx.Value; - if (newx > AnalogControlPanel.Max) newx = AnalogControlPanel.Max; - if (newx < AnalogControlPanel.Min) newx = AnalogControlPanel.Min; - - } - - if (dy.HasValue) - { - newy = AnalogControl1.Y + dy.Value; - if (newy > AnalogControlPanel.Max) newy = AnalogControlPanel.Max; - if (newy < AnalogControlPanel.Min) newy = AnalogControlPanel.Min; - - } - - AnalogControl1.SetPosition(newx, newy); - ManualX.Value = newx; - ManualY.Value = newy; - Refresh(); - } - - public List Buttons - { - get - { - List _list = new List(); - foreach(Control c in this.Controls) - { - if (c is VirtualPadButton) - { - _list.Add((c as VirtualPadButton)); - } - } - return _list; - } - } - - private void ManualX_KeyUp(object sender, KeyEventArgs e) - { - SetAnalogControlFromNumerics(); - } - - private void ManualY_KeyUp(object sender, KeyEventArgs e) - { - SetAnalogControlFromNumerics(); - } - - public void SetAnalogControlFromNumerics() - { - int x = (int)ManualX.Value; - int y = (int)ManualY.Value; - Global.StickyXORAdapter.SetFloat(Controller + " X Axis", x); - Global.StickyXORAdapter.SetFloat(Controller + " Y Axis", y); - - old_X = x; - old_Y = y; - AnalogControl1.HasValue = true; - AnalogControl1.X = x; - AnalogControl1.Y = y; - AnalogControl1.Refresh(); - } - - private void numericUpDown1_ValueChanged(object sender, EventArgs e) - { - AnalogControlPanel.Max = (int)numericUpDown1.Value; - ManualX.Maximum = (int)numericUpDown1.Value; - ManualY.Maximum = (int)numericUpDown1.Value; - AnalogControl1.Refresh(); - } - - private void numericUpDown2_ValueChanged(object sender, EventArgs e) - { - AnalogControlPanel.Min = (int)numericUpDown2.Value; - ManualX.Minimum = (int)numericUpDown2.Value; - ManualY.Minimum = (int)numericUpDown2.Value; - AnalogControl1.Refresh(); - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64Control.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64Control.cs deleted file mode 100644 index 4c82d1bdaa..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadN64Control.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadN64Control : VirtualPad - { - public VirtualPadN64Control() - { - ButtonPoints[0] = new Point(2, 2); - ButtonPoints[1] = new Point(56, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Power", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true, - TabStop = false - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[1], - TabIndex = 6, - Text = "Reset", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true, - TabStop = false - }; - B2.CheckedChanged += Buttons_CheckedChanged; - B2.ForeColor = Color.Red; - - Controls.Add(B1); - Controls.Add(B2); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B2.Checked ? "r" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 1) - { - return; - } - else if (buttons[0] == 'P') - { - B1.Checked = true; - } - else if (buttons[0] == '.' || buttons[0] == 'l' || buttons[0] == '0') - { - B2.Checked = false; - } - else - { - B2.Checked = true; - } - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "N64") - { - return; - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - if (B1.Checked) - B1.BackColor = Color.Pink; - else - B1.BackColor = SystemColors.Control; - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - if (B2.Checked) - B2.BackColor = Color.Pink; - else - B2.BackColor = SystemColors.Control; - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "N64") return; - - B1.Checked = false; - B2.Checked = false; - - Global.StickyXORAdapter.SetSticky("Reset", false); - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNES.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNES.cs deleted file mode 100644 index 338b607648..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNES.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadNES : VirtualPad - { - public VirtualPadNES() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(52, 24); - ButtonPoints[5] = new Point(74, 24); - ButtonPoints[6] = new Point(122, 24); - ButtonPoints[7] = new Point(146, 24); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "s", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "S", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 7, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "A", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "s" : "."); - input.Append(B2.Checked ? "S" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[6] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[7] == '.') B4.Checked = false; else B4.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "NES") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky(Controller + " Select", B1.Checked); - else if (sender == B2) - Global.StickyXORAdapter.SetSticky(Controller + " Start", B2.Checked); - else if (sender == B3) - Global.StickyXORAdapter.SetSticky(Controller + " B", B3.Checked); - else if (sender == B4) - Global.StickyXORAdapter.SetSticky(Controller + " A", B4.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "NES") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Select", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Start", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky(Controller + " A", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNESControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNESControl.cs deleted file mode 100644 index 69d6056c6b..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadNESControl.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadNESControl : VirtualPad - { - public VirtualPadNESControl() - { - ButtonPoints[0] = new Point(2, 2); - ButtonPoints[1] = new Point(56, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Power", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[1], - TabIndex = 6, - Text = "Reset", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - B2.ForeColor = Color.Red; - - Controls.Add(B1); - Controls.Add(B2); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B2.Checked ? "r" : B1.Checked ? "P" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 1) - { - return; - } - else if (buttons[0] == 'P') - { - B1.Checked = true; - } - else if (buttons[0] == '.' || buttons[0] == 'l' || buttons[0] == '0') - { - B2.Checked = false; - } - else - { - B2.Checked = true; - } - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - if (B1.Checked) - { - B1.BackColor = Color.Pink; - } - else - { - B1.BackColor = SystemColors.Control; - } - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - if (B2.Checked) - { - B2.BackColor = Color.Pink; - } - else - { - B2.BackColor = SystemColors.Control; - } - } - } - - public override void Clear() - { - B1.Checked = false; - B2.Checked = false; - - Global.StickyXORAdapter.SetSticky("Reset", false); - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadPCE.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadPCE.cs deleted file mode 100644 index 6092c29b22..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadPCE.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadPCE : VirtualPad - { - public VirtualPadPCE() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(52, 24); - ButtonPoints[5] = new Point(74, 24); - ButtonPoints[6] = new Point(122, 24); - ButtonPoints[7] = new Point(146, 24); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "s", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "R", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 7, - Text = "II", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "I", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PR.Checked ? "R" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PU.Checked ? "U" : "."); - - input.Append(B2.Checked ? "S" : "."); - input.Append(B1.Checked ? "s" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PR.Checked = false; else PR.Checked = true; - if (buttons[1] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[2] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[3] == '.') PU.Checked = false; else PU.Checked = true; - - if (buttons[4] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[5] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[6] == '.') B4.Checked = false; else B4.Checked = true; - if (buttons[7] == '.') B3.Checked = false; else B3.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "PCE") return; - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky(Controller + " Select", B1.Checked); - else if (sender == B2) - Global.StickyXORAdapter.SetSticky(Controller + " Run", B2.Checked); - else if (sender == B3) - Global.StickyXORAdapter.SetSticky(Controller + " B2", B3.Checked); - else if (sender == B4) - Global.StickyXORAdapter.SetSticky(Controller + " B1", B4.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "PCE" && Global.Emulator.SystemId != "PCECD" && Global.Emulator.SystemId != "SGX") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Select", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Run", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B2", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B1", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMS.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMS.cs deleted file mode 100644 index eae32201ae..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMS.cs +++ /dev/null @@ -1,205 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadSMS : VirtualPad - { - public VirtualPadSMS() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(122, 24); - ButtonPoints[5] = new Point(146, 24); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "1", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "2", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PR.Checked ? "R" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PU.Checked ? "U" : "."); - - input.Append(B1.Checked ? "1" : "."); - input.Append(B2.Checked ? "2" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SMS" && Global.Emulator.SystemId != "GG" && Global.Emulator.SystemId != "SG") return; - - if (sender == PU) - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - else if (sender == PD) - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - else if (sender == PL) - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - else if (sender == PR) - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - else if (sender == B1) - Global.StickyXORAdapter.SetSticky(Controller + " B1", B1.Checked); - else if (sender == B2) - Global.StickyXORAdapter.SetSticky(Controller + " B2", B2.Checked); - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "SMS" && Global.Emulator.SystemId != "GG" && Global.Emulator.SystemId != "SG") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B1", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B2", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMSControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMSControl.cs deleted file mode 100644 index 7b8378e013..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSMSControl.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadSMSControl : VirtualPad - { - public VirtualPadSMSControl() - { - ButtonPoints[0] = new Point(2, 2); - ButtonPoints[1] = new Point(56, 2); - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Pause", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[1], - TabIndex = 6, - Text = "Reset", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - B2.ForeColor = Color.Red; - - Controls.Add(B1); - Controls.Add(B2); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B1.Checked ? "p" : "."); - input.Append(B2.Checked ? "r" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 2) return; - if (buttons[0] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[1] == '.') B2.Checked = false; else B2.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SMS" && Global.Emulator.SystemId != "GG" && Global.Emulator.SystemId != "SG") return; - - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Pause", B1.Checked); - if (B1.Checked) - B1.BackColor = Color.Pink; - else - B1.BackColor = SystemColors.Control; - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - if (B2.Checked) - B2.BackColor = Color.Pink; - else - B2.BackColor = SystemColors.Control; - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "SMS" && Global.Emulator.SystemId != "GG" && Global.Emulator.SystemId != "SG") return; - - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Pause", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Reset", false); - - B1.Checked = false; - B2.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNES.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNES.cs deleted file mode 100644 index 01467e807a..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNES.cs +++ /dev/null @@ -1,357 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadSNES : VirtualPad - { - public VirtualPadSNES() - { - ButtonPoints[0] = new Point(14, 2); - ButtonPoints[1] = new Point(14, 46); - ButtonPoints[2] = new Point(2, 24); - ButtonPoints[3] = new Point(24, 24); - ButtonPoints[4] = new Point(56, 42); - ButtonPoints[5] = new Point(78, 42); - ButtonPoints[6] = new Point(122, 12); //X - ButtonPoints[7] = new Point(146, 22); //A - ButtonPoints[8] = new Point(110, 34); //Y - ButtonPoints[9] = new Point(134, 48); //B - ButtonPoints[10] = new Point(42, 0); //L - ButtonPoints[11] = new Point(94, 0); //R - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(174, 74); - - PU = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueUp, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[0], - TabIndex = 1, - UseVisualStyleBackColor = true - }; - PU.CheckedChanged += Buttons_CheckedChanged; - - PD = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.BlueDown, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[1], - TabIndex = 4, - UseVisualStyleBackColor = true - }; - PD.CheckedChanged += Buttons_CheckedChanged; - - PR = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Forward, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[3], - TabIndex = 3, - UseVisualStyleBackColor = true - }; - PR.CheckedChanged += Buttons_CheckedChanged; - - PL = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Image = Properties.Resources.Back, - ImageAlign = ContentAlignment.BottomRight, - Location = ButtonPoints[2], - TabIndex = 2, - UseVisualStyleBackColor = true - }; - PL.CheckedChanged += Buttons_CheckedChanged; - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[4], - TabIndex = 5, - Text = "s", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[5], - TabIndex = 6, - Text = "S", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - - B3 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[9], - TabIndex = 7, - Text = "B", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B3.CheckedChanged += Buttons_CheckedChanged; - - B4 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[7], - TabIndex = 8, - Text = "A", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B4.CheckedChanged += Buttons_CheckedChanged; - - B5 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[6], - TabIndex = 8, - Text = "X", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B5.CheckedChanged += Buttons_CheckedChanged; - - B6 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[8], - TabIndex = 8, - Text = "Y", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B6.CheckedChanged += Buttons_CheckedChanged; - - B7 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[10], - TabIndex = 8, - Text = "L", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B7.CheckedChanged += Buttons_CheckedChanged; - - B8 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[11], - TabIndex = 8, - Text = "R", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B8.CheckedChanged += Buttons_CheckedChanged; - - - Controls.Add(PU); - Controls.Add(PD); - Controls.Add(PL); - Controls.Add(PR); - Controls.Add(B1); - Controls.Add(B2); - Controls.Add(B3); - Controls.Add(B4); - Controls.Add(B5); - Controls.Add(B6); - Controls.Add(B7); - Controls.Add(B8); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(B1.Checked ? "s" : "."); - input.Append(B2.Checked ? "S" : "."); - input.Append(B3.Checked ? "B" : "."); - input.Append(B4.Checked ? "A" : "."); - input.Append(B5.Checked ? "X" : "."); - input.Append(B6.Checked ? "Y" : "."); - input.Append(B7.Checked ? "L" : "."); - input.Append(B8.Checked ? "R" : "."); - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 8) return; - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[4] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[5] == '.') B2.Checked = false; else B2.Checked = true; - if (buttons[6] == '.') B3.Checked = false; else B3.Checked = true; - if (buttons[7] == '.') B4.Checked = false; else B4.Checked = true; - if (buttons[8] == '.') B5.Checked = false; else B5.Checked = true; - if (buttons[9] == '.') B6.Checked = false; else B6.Checked = true; - if (buttons[10] == '.') B7.Checked = false; else B7.Checked = true; - if (buttons[11] == '.') B8.Checked = false; else B8.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SNES") - { - return; - } - else if (sender == PU) - { - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky(Controller + " Select", B1.Checked); - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky(Controller + " Start", B2.Checked); - } - else if (sender == B3) - { - Global.StickyXORAdapter.SetSticky(Controller + " B", B3.Checked); - } - else if (sender == B4) - { - Global.StickyXORAdapter.SetSticky(Controller + " A", B4.Checked); - } - else if (sender == B5) - { - Global.StickyXORAdapter.SetSticky(Controller + " X", B5.Checked); - } - else if (sender == B6) - { - Global.StickyXORAdapter.SetSticky(Controller + " Y", B6.Checked); - } - - else if (sender == B7) - { - Global.StickyXORAdapter.SetSticky(Controller + " L", B7.Checked); - } - else if (sender == B8) - { - Global.StickyXORAdapter.SetSticky(Controller + " R", B8.Checked); - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "SNES") - { - return; - } - else - { - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - if (B1.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Select", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Start", false); - if (B3.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - if (B4.Checked) Global.StickyXORAdapter.SetSticky(Controller + " A", false); - if (B5.Checked) Global.StickyXORAdapter.SetSticky(Controller + " X", false); - if (B6.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Y", false); - if (B7.Checked) Global.StickyXORAdapter.SetSticky(Controller + " L", false); - if (B8.Checked) Global.StickyXORAdapter.SetSticky(Controller + " R", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - B1.Checked = false; - B2.Checked = false; - B3.Checked = false; - B4.Checked = false; - - B5.Checked = false; - B6.Checked = false; - B7.Checked = false; - B8.Checked = false; - } - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNESControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNESControl.cs deleted file mode 100644 index a6fe29d9df..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSNESControl.cs +++ /dev/null @@ -1,171 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using System.Text; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public class VirtualPadSNESControl : VirtualPad - { - - public VirtualPadSNESControl() - { - ButtonPoints[0] = new Point(2, 2); - ButtonPoints[1] = new Point(56, 2); - - - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - Size = new Size(108, 34); - - B1 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[0], - TabIndex = 5, - Text = "Power", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B1.CheckedChanged += Buttons_CheckedChanged; - B1.ForeColor = Color.Red; - - B2 = new CheckBox - { - Appearance = Appearance.Button, - AutoSize = true, - Location = ButtonPoints[1], - TabIndex = 6, - Text = "Reset", - TextAlign = ContentAlignment.BottomCenter, - UseVisualStyleBackColor = true - }; - B2.CheckedChanged += Buttons_CheckedChanged; - B2.ForeColor = Color.Red; - - Controls.Add(B1); - Controls.Add(B2); - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public override string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - if (B1.Checked) - { - input.Append('P'); - } - else if (B2.Checked) - { - input.Append('r'); - } - else - { - input.Append('.'); - } - input.Append("|"); - return input.ToString(); - } - - public override void SetButtons(string buttons) - { - if (buttons.Length < 1) return; - if (buttons[0] == '.' || buttons[0] == '0') - { - B2.Checked = false; - } - else if (buttons[0] == 'P') - { - B1.Checked = true; - } - else - { - B2.Checked = true; - } - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SNES") - { - return; - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - if (B1.Checked) - { - B1.BackColor = Color.Pink; - } - else - { - B1.BackColor = SystemColors.Control; - } - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - if (B2.Checked) - { - B2.BackColor = Color.Pink; - } - else - { - B2.BackColor = SystemColors.Control; - } - } - } - - public override void Clear() - { - if (Global.Emulator.SystemId != "SNES") - { - return; - } - else - { - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Reset", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Power", false); - - B1.Checked = false; - B2.Checked = false; - } - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.Designer.cs deleted file mode 100644 index 4014888796..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.Designer.cs +++ /dev/null @@ -1,243 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadSaturn - { - /// - /// 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.BA = new System.Windows.Forms.CheckBox(); - this.BB = new System.Windows.Forms.CheckBox(); - this.BC = new System.Windows.Forms.CheckBox(); - this.BZ = new System.Windows.Forms.CheckBox(); - this.BX = new System.Windows.Forms.CheckBox(); - this.BY = new System.Windows.Forms.CheckBox(); - this.BStart = new System.Windows.Forms.CheckBox(); - this.PL = new System.Windows.Forms.CheckBox(); - this.PD = new System.Windows.Forms.CheckBox(); - this.PR = new System.Windows.Forms.CheckBox(); - this.PU = new System.Windows.Forms.CheckBox(); - this.BL = new System.Windows.Forms.CheckBox(); - this.BR = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // BA - // - this.BA.Appearance = System.Windows.Forms.Appearance.Button; - this.BA.AutoSize = true; - this.BA.Location = new System.Drawing.Point(107, 64); - this.BA.Name = "BA"; - this.BA.Size = new System.Drawing.Size(24, 23); - this.BA.TabIndex = 15; - this.BA.Text = "A"; - this.BA.UseVisualStyleBackColor = true; - this.BA.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BB - // - this.BB.Appearance = System.Windows.Forms.Appearance.Button; - this.BB.AutoSize = true; - this.BB.Location = new System.Drawing.Point(132, 59); - this.BB.Name = "BB"; - this.BB.Size = new System.Drawing.Size(24, 23); - this.BB.TabIndex = 14; - this.BB.Text = "B"; - this.BB.UseVisualStyleBackColor = true; - this.BB.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BC - // - this.BC.Appearance = System.Windows.Forms.Appearance.Button; - this.BC.AutoSize = true; - this.BC.Location = new System.Drawing.Point(157, 54); - this.BC.Name = "BC"; - this.BC.Size = new System.Drawing.Size(24, 23); - this.BC.TabIndex = 16; - this.BC.Text = "C"; - this.BC.UseVisualStyleBackColor = true; - this.BC.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BZ - // - this.BZ.Appearance = System.Windows.Forms.Appearance.Button; - this.BZ.AutoSize = true; - this.BZ.Location = new System.Drawing.Point(156, 27); - this.BZ.Name = "BZ"; - this.BZ.Size = new System.Drawing.Size(24, 23); - this.BZ.TabIndex = 19; - this.BZ.Text = "Z"; - this.BZ.UseVisualStyleBackColor = true; - this.BZ.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BX - // - this.BX.Appearance = System.Windows.Forms.Appearance.Button; - this.BX.AutoSize = true; - this.BX.Location = new System.Drawing.Point(106, 37); - this.BX.Name = "BX"; - this.BX.Size = new System.Drawing.Size(24, 23); - this.BX.TabIndex = 18; - this.BX.Text = "X"; - this.BX.UseVisualStyleBackColor = true; - this.BX.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BY - // - this.BY.Appearance = System.Windows.Forms.Appearance.Button; - this.BY.AutoSize = true; - this.BY.Location = new System.Drawing.Point(131, 32); - this.BY.Name = "BY"; - this.BY.Size = new System.Drawing.Size(24, 23); - this.BY.TabIndex = 17; - this.BY.Text = "Y"; - this.BY.UseVisualStyleBackColor = true; - this.BY.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BStart - // - this.BStart.Appearance = System.Windows.Forms.Appearance.Button; - this.BStart.AutoSize = true; - this.BStart.Location = new System.Drawing.Point(68, 66); - this.BStart.Name = "BStart"; - this.BStart.Size = new System.Drawing.Size(24, 23); - this.BStart.TabIndex = 20; - this.BStart.Text = "S"; - this.BStart.UseVisualStyleBackColor = true; - this.BStart.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(6, 38); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 7; - this.PL.UseVisualStyleBackColor = true; - this.PL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(27, 47); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 6; - this.PD.UseVisualStyleBackColor = true; - this.PD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(48, 38); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 5; - this.PR.UseVisualStyleBackColor = true; - this.PR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(27, 26); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 4; - this.PU.UseVisualStyleBackColor = true; - this.PU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BL - // - this.BL.Appearance = System.Windows.Forms.Appearance.Button; - this.BL.AutoSize = true; - this.BL.Location = new System.Drawing.Point(3, 3); - this.BL.Name = "BL"; - this.BL.Size = new System.Drawing.Size(23, 23); - this.BL.TabIndex = 21; - this.BL.Text = "L"; - this.BL.UseVisualStyleBackColor = true; - this.BL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BR - // - this.BR.Appearance = System.Windows.Forms.Appearance.Button; - this.BR.AutoSize = true; - this.BR.Location = new System.Drawing.Point(169, 3); - this.BR.Name = "BR"; - this.BR.Size = new System.Drawing.Size(25, 23); - this.BR.TabIndex = 22; - this.BR.Text = "R"; - this.BR.UseVisualStyleBackColor = true; - this.BR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadSaturn - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.BR); - this.Controls.Add(this.BL); - this.Controls.Add(this.BStart); - this.Controls.Add(this.BZ); - this.Controls.Add(this.BX); - this.Controls.Add(this.BY); - this.Controls.Add(this.BC); - this.Controls.Add(this.BA); - this.Controls.Add(this.BB); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Name = "VirtualPadSaturn"; - this.Size = new System.Drawing.Size(204, 92); - this.Load += new System.EventHandler(this.VirtualPadSaturn_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox PL; - private System.Windows.Forms.CheckBox PD; - private System.Windows.Forms.CheckBox PR; - private System.Windows.Forms.CheckBox PU; - private System.Windows.Forms.CheckBox BA; - private System.Windows.Forms.CheckBox BB; - private System.Windows.Forms.CheckBox BC; - private System.Windows.Forms.CheckBox BZ; - private System.Windows.Forms.CheckBox BX; - private System.Windows.Forms.CheckBox BY; - private System.Windows.Forms.CheckBox BStart; - private System.Windows.Forms.CheckBox BL; - private System.Windows.Forms.CheckBox BR; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.cs deleted file mode 100644 index 2b3d4f85f1..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.cs +++ /dev/null @@ -1,204 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadSaturn : UserControl, IVirtualPad - { - public string Controller { get; set; } - - public VirtualPadSaturn() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - InitializeComponent(); - - Controller = "P1"; - } - - private void VirtualPadSaturn_Load(object sender, EventArgs e) - { - - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "U" : "."); - input.Append(PD.Checked ? "D" : "."); - input.Append(PL.Checked ? "L" : "."); - input.Append(PR.Checked ? "R" : "."); - - input.Append(BStart.Checked ? "S" : "."); - input.Append(BX.Checked ? "X" : "."); - input.Append(BY.Checked ? "Y" : "."); - input.Append(BZ.Checked ? "Z" : "."); - input.Append(BA.Checked ? "A" : "."); - input.Append(BB.Checked ? "B" : "."); - input.Append(BC.Checked ? "C" : "."); - - input.Append(BL.Checked ? "L" : "."); - input.Append(BR.Checked ? "R" : "."); - - input.Append("|"); - return input.ToString(); - } - - public void Clear() - { - if (Global.Emulator.SystemId != "SAT") return; - - if (PU.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Up", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Down", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Left", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Right", false); - - if (BStart.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Start", false); - - if (BX.Checked) Global.StickyXORAdapter.SetSticky(Controller + " X", false); - if (BY.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Y", false); - if (BZ.Checked) Global.StickyXORAdapter.SetSticky(Controller + " Z", false); - - if (BA.Checked) Global.StickyXORAdapter.SetSticky(Controller + " A", false); - if (BB.Checked) Global.StickyXORAdapter.SetSticky(Controller + " B", false); - if (BC.Checked) Global.StickyXORAdapter.SetSticky(Controller + " C", false); - - if (BL.Checked) Global.StickyXORAdapter.SetSticky(Controller + " L", false); - if (BR.Checked) Global.StickyXORAdapter.SetSticky(Controller + " R", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - BStart.Checked = false; - - BX.Checked = false; - BY.Checked = false; - BZ.Checked = false; - - BA.Checked = false; - BB.Checked = false; - BC.Checked = false; - - BL.Checked = false; - BR.Checked = false; - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 13) return; - - if (buttons[0] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[1] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[2] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[3] == '.') PR.Checked = false; else PR.Checked = true; - if (buttons[4] == '.') BStart.Checked = false; else BStart.Checked = true; - if (buttons[5] == '.') BX.Checked = false; else BX.Checked = true; - if (buttons[6] == '.') BY.Checked = false; else BY.Checked = true; - if (buttons[7] == '.') BZ.Checked = false; else BZ.Checked = true; - if (buttons[8] == '.') BA.Checked = false; else BA.Checked = true; - if (buttons[9] == '.') BB.Checked = false; else BB.Checked = true; - if (buttons[10] == '.') BC.Checked = false; else BC.Checked = true; - if (buttons[11] == '.') BL.Checked = false; else BL.Checked = true; - if (buttons[12] == '.') BR.Checked = false; else BR.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SAT") - { - return; - } - else if (sender == PU) - { - Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked); - } - else if (sender == BStart) - { - Global.StickyXORAdapter.SetSticky(Controller + " Start", BStart.Checked); - } - else if (sender == BX) - { - Global.StickyXORAdapter.SetSticky(Controller + " X", BX.Checked); - } - else if (sender == BY) - { - Global.StickyXORAdapter.SetSticky(Controller + " Y", BY.Checked); - } - else if (sender == BZ) - { - Global.StickyXORAdapter.SetSticky(Controller + " Z", BZ.Checked); - } - else if (sender == BA) - { - Global.StickyXORAdapter.SetSticky(Controller + " A", BA.Checked); - } - else if (sender == BB) - { - Global.StickyXORAdapter.SetSticky(Controller + " B", BB.Checked); - } - else if (sender == BC) - { - Global.StickyXORAdapter.SetSticky(Controller + " C", BC.Checked); - } - else if (sender == BL) - { - Global.StickyXORAdapter.SetSticky(Controller + " L", BL.Checked); - } - else if (sender == BR) - { - Global.StickyXORAdapter.SetSticky(Controller + " R", BR.Checked); - } - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturn.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.Designer.cs deleted file mode 100644 index 2e2c38afb5..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.Designer.cs +++ /dev/null @@ -1,78 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadSaturnControl - { - /// - /// 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.B2 = new System.Windows.Forms.CheckBox(); - this.B1 = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // B2 - // - this.B2.Appearance = System.Windows.Forms.Appearance.Button; - this.B2.AutoSize = true; - this.B2.Location = new System.Drawing.Point(56, 3); - this.B2.Name = "B2"; - this.B2.Size = new System.Drawing.Size(45, 23); - this.B2.TabIndex = 13; - this.B2.Text = "Reset"; - this.B2.UseVisualStyleBackColor = true; - this.B2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // B1 - // - this.B1.Appearance = System.Windows.Forms.Appearance.Button; - this.B1.AutoSize = true; - this.B1.Location = new System.Drawing.Point(3, 3); - this.B1.Name = "B1"; - this.B1.Size = new System.Drawing.Size(47, 23); - this.B1.TabIndex = 12; - this.B1.Text = "Power"; - this.B1.UseVisualStyleBackColor = true; - this.B1.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadSaturnControl - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.B2); - this.Controls.Add(this.B1); - this.Name = "VirtualPadSaturnControl"; - this.Size = new System.Drawing.Size(110, 32); - this.Load += new System.EventHandler(this.VirtualPadSaturnControl_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox B2; - private System.Windows.Forms.CheckBox B1; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.cs deleted file mode 100644 index b5577bebe0..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadSaturnControl : UserControl, IVirtualPad - { - public string Controller { get; set; } - - public VirtualPadSaturnControl() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - InitializeComponent(); - - Controller = string.Empty; - } - - private void VirtualPadSaturnControl_Load(object sender, EventArgs e) - { - - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - - return true; - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(B1.Checked ? "P" : "."); - input.Append(B2.Checked ? "r" : "."); - input.Append("|"); - return input.ToString(); - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 2) return; - if (buttons[0] == '.') B1.Checked = false; else B1.Checked = true; - if (buttons[1] == '.') B2.Checked = false; else B2.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "SAT") - { - return; - } - else if (sender == B1) - { - Global.StickyXORAdapter.SetSticky("Power", B1.Checked); - } - else if (sender == B2) - { - Global.StickyXORAdapter.SetSticky("Reset", B2.Checked); - } - } - - public void Clear() - { - if (Global.Emulator.SystemId != "SAT") return; - - if (B1.Checked) Global.StickyXORAdapter.SetSticky("Power", false); - if (B2.Checked) Global.StickyXORAdapter.SetSticky("Reset", false); - - B1.Checked = false; - B2.Checked = false; - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadSaturnControl.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.Designer.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.Designer.cs deleted file mode 100644 index 9a60ca70ca..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.Designer.cs +++ /dev/null @@ -1,229 +0,0 @@ -namespace BizHawk.Client.EmuHawk -{ - partial class VirtualPadWonderSawn - { - /// - /// 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.PL = new System.Windows.Forms.CheckBox(); - this.PD = new System.Windows.Forms.CheckBox(); - this.PR = new System.Windows.Forms.CheckBox(); - this.PU = new System.Windows.Forms.CheckBox(); - this.PL2 = new System.Windows.Forms.CheckBox(); - this.PD2 = new System.Windows.Forms.CheckBox(); - this.PR2 = new System.Windows.Forms.CheckBox(); - this.PU2 = new System.Windows.Forms.CheckBox(); - this.BStart = new System.Windows.Forms.CheckBox(); - this.BA = new System.Windows.Forms.CheckBox(); - this.BB = new System.Windows.Forms.CheckBox(); - this.BPower = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // PL - // - this.PL.Appearance = System.Windows.Forms.Appearance.Button; - this.PL.AutoSize = true; - this.PL.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL.Location = new System.Drawing.Point(1, 15); - this.PL.Name = "PL"; - this.PL.Size = new System.Drawing.Size(22, 22); - this.PL.TabIndex = 11; - this.PL.UseVisualStyleBackColor = true; - this.PL.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD - // - this.PD.Appearance = System.Windows.Forms.Appearance.Button; - this.PD.AutoSize = true; - this.PD.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD.Location = new System.Drawing.Point(22, 24); - this.PD.Name = "PD"; - this.PD.Size = new System.Drawing.Size(22, 22); - this.PD.TabIndex = 10; - this.PD.UseVisualStyleBackColor = true; - this.PD.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR - // - this.PR.Appearance = System.Windows.Forms.Appearance.Button; - this.PR.AutoSize = true; - this.PR.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR.Location = new System.Drawing.Point(43, 15); - this.PR.Name = "PR"; - this.PR.Size = new System.Drawing.Size(22, 22); - this.PR.TabIndex = 9; - this.PR.UseVisualStyleBackColor = true; - this.PR.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PU - // - this.PU.Appearance = System.Windows.Forms.Appearance.Button; - this.PU.AutoSize = true; - this.PU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU.Location = new System.Drawing.Point(22, 3); - this.PU.Name = "PU"; - this.PU.Size = new System.Drawing.Size(22, 22); - this.PU.TabIndex = 8; - this.PU.UseVisualStyleBackColor = true; - this.PU.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PL2 - // - this.PL2.Appearance = System.Windows.Forms.Appearance.Button; - this.PL2.AutoSize = true; - this.PL2.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Back; - this.PL2.Location = new System.Drawing.Point(1, 79); - this.PL2.Name = "PL2"; - this.PL2.Size = new System.Drawing.Size(22, 22); - this.PL2.TabIndex = 15; - this.PL2.UseVisualStyleBackColor = true; - this.PL2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PD2 - // - this.PD2.Appearance = System.Windows.Forms.Appearance.Button; - this.PD2.AutoSize = true; - this.PD2.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueDown; - this.PD2.Location = new System.Drawing.Point(22, 88); - this.PD2.Name = "PD2"; - this.PD2.Size = new System.Drawing.Size(22, 22); - this.PD2.TabIndex = 14; - this.PD2.UseVisualStyleBackColor = true; - this.PD2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PR2 - // - this.PR2.Appearance = System.Windows.Forms.Appearance.Button; - this.PR2.AutoSize = true; - this.PR2.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Forward; - this.PR2.Location = new System.Drawing.Point(43, 79); - this.PR2.Name = "PR2"; - this.PR2.Size = new System.Drawing.Size(22, 22); - this.PR2.TabIndex = 13; - this.PR2.UseVisualStyleBackColor = true; - this.PR2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // PU2 - // - this.PU2.Appearance = System.Windows.Forms.Appearance.Button; - this.PU2.AutoSize = true; - this.PU2.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.BlueUp; - this.PU2.Location = new System.Drawing.Point(22, 67); - this.PU2.Name = "PU2"; - this.PU2.Size = new System.Drawing.Size(22, 22); - this.PU2.TabIndex = 12; - this.PU2.UseVisualStyleBackColor = true; - this.PU2.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BStart - // - this.BStart.Appearance = System.Windows.Forms.Appearance.Button; - this.BStart.AutoSize = true; - this.BStart.Location = new System.Drawing.Point(79, 78); - this.BStart.Name = "BStart"; - this.BStart.Size = new System.Drawing.Size(24, 23); - this.BStart.TabIndex = 21; - this.BStart.Text = "S"; - this.BStart.UseVisualStyleBackColor = true; - this.BStart.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BA - // - this.BA.Appearance = System.Windows.Forms.Appearance.Button; - this.BA.AutoSize = true; - this.BA.Location = new System.Drawing.Point(145, 30); - this.BA.Name = "BA"; - this.BA.Size = new System.Drawing.Size(24, 23); - this.BA.TabIndex = 23; - this.BA.Text = "A"; - this.BA.UseVisualStyleBackColor = true; - this.BA.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BB - // - this.BB.Appearance = System.Windows.Forms.Appearance.Button; - this.BB.AutoSize = true; - this.BB.Location = new System.Drawing.Point(122, 35); - this.BB.Name = "BB"; - this.BB.Size = new System.Drawing.Size(24, 23); - this.BB.TabIndex = 22; - this.BB.Text = "B"; - this.BB.UseVisualStyleBackColor = true; - this.BB.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // BPower - // - this.BPower.Appearance = System.Windows.Forms.Appearance.Button; - this.BPower.AutoSize = true; - this.BPower.ForeColor = System.Drawing.Color.Red; - this.BPower.Location = new System.Drawing.Point(108, 78); - this.BPower.Name = "BPower"; - this.BPower.Size = new System.Drawing.Size(47, 23); - this.BPower.TabIndex = 24; - this.BPower.Text = "Power"; - this.BPower.UseVisualStyleBackColor = true; - this.BPower.CheckedChanged += new System.EventHandler(this.Buttons_CheckedChanged); - // - // VirtualPadWonderSawn - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.BPower); - this.Controls.Add(this.BA); - this.Controls.Add(this.BB); - this.Controls.Add(this.BStart); - this.Controls.Add(this.PL2); - this.Controls.Add(this.PD2); - this.Controls.Add(this.PR2); - this.Controls.Add(this.PU2); - this.Controls.Add(this.PL); - this.Controls.Add(this.PD); - this.Controls.Add(this.PR); - this.Controls.Add(this.PU); - this.Name = "VirtualPadWonderSawn"; - this.Size = new System.Drawing.Size(179, 119); - this.Load += new System.EventHandler(this.VirtualPadWonderSawn_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.CheckBox PL; - private System.Windows.Forms.CheckBox PD; - private System.Windows.Forms.CheckBox PR; - private System.Windows.Forms.CheckBox PU; - private System.Windows.Forms.CheckBox PL2; - private System.Windows.Forms.CheckBox PD2; - private System.Windows.Forms.CheckBox PR2; - private System.Windows.Forms.CheckBox PU2; - private System.Windows.Forms.CheckBox BStart; - private System.Windows.Forms.CheckBox BA; - private System.Windows.Forms.CheckBox BB; - private System.Windows.Forms.CheckBox BPower; - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.cs deleted file mode 100644 index ef81bd5598..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.cs +++ /dev/null @@ -1,206 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; - -using BizHawk.Client.Common; - -namespace BizHawk.Client.EmuHawk -{ - public partial class VirtualPadWonderSawn : UserControl, IVirtualPad - { - public string Controller { get; set; } - - public VirtualPadWonderSawn() - { - SetStyle(ControlStyles.AllPaintingInWmPaint, true); - SetStyle(ControlStyles.UserPaint, true); - SetStyle(ControlStyles.DoubleBuffer, true); - BorderStyle = BorderStyle.Fixed3D; - Paint += VirtualPad_Paint; - InitializeComponent(); - - Controller = ""; - } - - private void VirtualPadWonderSawn_Load(object sender, EventArgs e) - { - - } - - private void VirtualPad_Paint(object sender, PaintEventArgs e) - { - - } - - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Up) - { - //TODO: move to next logical key - Refresh(); - } - else if (keyData == Keys.Down) - { - Refresh(); - } - else if (keyData == Keys.Left) - { - Refresh(); - } - else if (keyData == Keys.Right) - { - Refresh(); - } - else if (keyData == Keys.Tab) - { - Refresh(); - } - return true; - } - - public string GetMnemonic() - { - StringBuilder input = new StringBuilder(""); - input.Append(PU.Checked ? "Up X" : "."); - input.Append(PD.Checked ? "Down X" : "."); - input.Append(PL.Checked ? "Left X" : "."); - input.Append(PR.Checked ? "Right X" : "."); - - input.Append("|"); - - input.Append(PU2.Checked ? "Up Y" : "."); - input.Append(PD2.Checked ? "Down Y" : "."); - input.Append(PL2.Checked ? "Left Y" : "."); - input.Append(PR2.Checked ? "Right Y" : "."); - - input.Append("|"); - - input.Append(BStart.Checked ? "Start" : "."); - input.Append(BB.Checked ? "B" : "."); - input.Append(BA.Checked ? "A" : "."); - input.Append(BPower.Checked ? "P" : "."); - - input.Append("|"); - - return input.ToString(); - } - - public void Clear() - { - if (Global.Emulator.SystemId != "WSWAN") - { - return; - } - - if (PU.Checked) Global.StickyXORAdapter.SetSticky("Up X", false); - if (PD.Checked) Global.StickyXORAdapter.SetSticky("Down X", false); - if (PL.Checked) Global.StickyXORAdapter.SetSticky("Left X", false); - if (PR.Checked) Global.StickyXORAdapter.SetSticky("Right X", false); - - if (PU2.Checked) Global.StickyXORAdapter.SetSticky("Up Y", false); - if (PD2.Checked) Global.StickyXORAdapter.SetSticky("Down Y", false); - if (PL2.Checked) Global.StickyXORAdapter.SetSticky("Left Y", false); - if (PR2.Checked) Global.StickyXORAdapter.SetSticky("Right Y", false); - - if (BStart.Checked) Global.StickyXORAdapter.SetSticky("Start", false); - - if (BB.Checked) Global.StickyXORAdapter.SetSticky("B", false); - if (BA.Checked) Global.StickyXORAdapter.SetSticky("A", false); - - if (BPower.Checked) Global.StickyXORAdapter.SetSticky("Power", false); - - PU.Checked = false; - PD.Checked = false; - PL.Checked = false; - PR.Checked = false; - - PU2.Checked = false; - PD2.Checked = false; - PL2.Checked = false; - PR2.Checked = false; - - BStart.Checked = false; - - BA.Checked = false; - BB.Checked = false; - - BPower.Checked = false; - } - - public void SetButtons(string buttons) - { - if (buttons.Length < 15) return; - - if (buttons[1] == '.') PU.Checked = false; else PU.Checked = true; - if (buttons[2] == '.') PD.Checked = false; else PD.Checked = true; - if (buttons[3] == '.') PL.Checked = false; else PL.Checked = true; - if (buttons[4] == '.') PR.Checked = false; else PR.Checked = true; - - if (buttons[6] == '.') PU2.Checked = false; else PU2.Checked = true; - if (buttons[7] == '.') PD2.Checked = false; else PD2.Checked = true; - if (buttons[8] == '.') PL2.Checked = false; else PL2.Checked = true; - if (buttons[9] == '.') PR2.Checked = false; else PR2.Checked = true; - - if (buttons[11] == '.') BStart.Checked = false; else BStart.Checked = true; - if (buttons[12] == '.') BB.Checked = false; else BB.Checked = true; - if (buttons[13] == '.') BA.Checked = false; else BA.Checked = true; - if (buttons[14] == '.') BPower.Checked = false; else BPower.Checked = true; - } - - private void Buttons_CheckedChanged(object sender, EventArgs e) - { - if (Global.Emulator.SystemId != "WSWAN") - { - return; - } - else if (sender == PU) - { - Global.StickyXORAdapter.SetSticky("Up X", PU.Checked); - } - else if (sender == PD) - { - Global.StickyXORAdapter.SetSticky("Down X", PD.Checked); - } - else if (sender == PL) - { - Global.StickyXORAdapter.SetSticky("Left X", PL.Checked); - } - else if (sender == PR) - { - Global.StickyXORAdapter.SetSticky("Right X", PR.Checked); - } - else if (sender == PU2) - { - Global.StickyXORAdapter.SetSticky("Up Y", PU2.Checked); - } - else if (sender == PD2) - { - Global.StickyXORAdapter.SetSticky("Down Y", PD2.Checked); - } - else if (sender == PL2) - { - Global.StickyXORAdapter.SetSticky("Left Y", PL2.Checked); - } - else if (sender == PR2) - { - Global.StickyXORAdapter.SetSticky("Right Y", PR2.Checked); - } - else if (sender == BStart) - { - Global.StickyXORAdapter.SetSticky("Start", BStart.Checked); - } - else if (sender == BB) - { - Global.StickyXORAdapter.SetSticky("B", BB.Checked); - } - else if (sender == BA) - { - Global.StickyXORAdapter.SetSticky("A", BA.Checked); - } - else if (sender == BPower) - { - Global.StickyXORAdapter.SetSticky("Power", BPower.Checked); - } - } - } -} diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.resx b/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.resx deleted file mode 100644 index 29dcb1b3a3..0000000000 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/VirtualPadWonderSawn.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file