VirtualPads - implement sticky toggle checkbox

This commit is contained in:
adelikat 2012-12-02 20:44:44 +00:00
parent 562eeb18bd
commit 2947cd92d0
2 changed files with 10 additions and 1 deletions

View File

@ -124,7 +124,6 @@
//
this.StickyBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.StickyBox.AutoSize = true;
this.StickyBox.Enabled = false;
this.StickyBox.Location = new System.Drawing.Point(9, 283);
this.StickyBox.Name = "StickyBox";
this.StickyBox.Size = new System.Drawing.Size(55, 17);

View File

@ -301,6 +301,16 @@ namespace BizHawk.MultiClient
}
}
}
else
{
if (!Global.Config.VirtualPadSticky)
{
foreach (IVirtualPad v in Pads)
{
v.Clear();
}
}
}
}
private void StickyBox_CheckedChanged(object sender, EventArgs e)