TAStudio - Fix SMS virtualpad so that it controls input
This commit is contained in:
parent
ef33763383
commit
81fe6e200c
|
@ -242,7 +242,7 @@
|
||||||
this.StopButton});
|
this.StopButton});
|
||||||
this.toolStrip1.Location = new System.Drawing.Point(37, 27);
|
this.toolStrip1.Location = new System.Drawing.Point(37, 27);
|
||||||
this.toolStrip1.Name = "toolStrip1";
|
this.toolStrip1.Name = "toolStrip1";
|
||||||
this.toolStrip1.Size = new System.Drawing.Size(154, 25);
|
this.toolStrip1.Size = new System.Drawing.Size(185, 25);
|
||||||
this.toolStrip1.TabIndex = 0;
|
this.toolStrip1.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// RewindToBeginning
|
// RewindToBeginning
|
||||||
|
@ -292,6 +292,7 @@
|
||||||
// FastFowardToEnd
|
// FastFowardToEnd
|
||||||
//
|
//
|
||||||
this.FastFowardToEnd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
this.FastFowardToEnd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||||
|
this.FastFowardToEnd.Enabled = false;
|
||||||
this.FastFowardToEnd.Image = global::BizHawk.MultiClient.Properties.Resources.ForwardMore;
|
this.FastFowardToEnd.Image = global::BizHawk.MultiClient.Properties.Resources.ForwardMore;
|
||||||
this.FastFowardToEnd.ImageTransparentColor = System.Drawing.Color.Magenta;
|
this.FastFowardToEnd.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
this.FastFowardToEnd.Name = "FastFowardToEnd";
|
this.FastFowardToEnd.Name = "FastFowardToEnd";
|
||||||
|
|
|
@ -121,8 +121,10 @@ namespace BizHawk.MultiClient
|
||||||
case "GG":
|
case "GG":
|
||||||
VirtualPadSMS smspad1 = new VirtualPadSMS();
|
VirtualPadSMS smspad1 = new VirtualPadSMS();
|
||||||
smspad1.Location = new Point(8, 19);
|
smspad1.Location = new Point(8, 19);
|
||||||
|
smspad1.Controller = "P1";
|
||||||
VirtualPadSMS smspad2 = new VirtualPadSMS();
|
VirtualPadSMS smspad2 = new VirtualPadSMS();
|
||||||
smspad2.Location = new Point(188, 19);
|
smspad2.Location = new Point(188, 19);
|
||||||
|
smspad2.Controller = "P2";
|
||||||
Pads.Add(smspad1);
|
Pads.Add(smspad1);
|
||||||
Pads.Add(smspad2);
|
Pads.Add(smspad2);
|
||||||
ControllerBox.Controls.Add(Pads[0]);
|
ControllerBox.Controls.Add(Pads[0]);
|
||||||
|
|
|
@ -148,17 +148,17 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
if (Global.Emulator.SystemId != "SMS") return;
|
if (Global.Emulator.SystemId != "SMS") return;
|
||||||
if (sender == PU)
|
if (sender == PU)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "Up", PU.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " Up", PU.Checked);
|
||||||
else if (sender == PD)
|
else if (sender == PD)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "Down", PD.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " Down", PD.Checked);
|
||||||
else if (sender == PL)
|
else if (sender == PL)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "Left", PL.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " Left", PL.Checked);
|
||||||
else if (sender == PR)
|
else if (sender == PR)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "Right", PR.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " Right", PR.Checked);
|
||||||
else if (sender == B1)
|
else if (sender == B1)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "B1", B3.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " B1", B3.Checked);
|
||||||
else if (sender == B2)
|
else if (sender == B2)
|
||||||
Global.StickyXORAdapter.SetSticky(Controller + "B2", B4.Checked);
|
Global.StickyXORAdapter.SetSticky(Controller + " B2", B4.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Clear()
|
public override void Clear()
|
||||||
|
|
Loading…
Reference in New Issue