Controller Config - some tweaks, but input widgets aren't working, dont' know why
This commit is contained in:
parent
388f62f140
commit
6e7a906cf5
|
@ -38,6 +38,18 @@ namespace BizHawk.MultiClient
|
||||||
SetAutoTab(true);
|
SetAutoTab(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnShown(EventArgs e)
|
||||||
|
{
|
||||||
|
Input.Instance.EnableIgnoreModifiers = true;
|
||||||
|
base.OnShown(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnClosed(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnClosed(e);
|
||||||
|
Input.Instance.EnableIgnoreModifiers = false;
|
||||||
|
}
|
||||||
|
|
||||||
private void SetAutoTab(bool setting)
|
private void SetAutoTab(bool setting)
|
||||||
{
|
{
|
||||||
foreach (Control control1 in tabControl1.TabPages)
|
foreach (Control control1 in tabControl1.TabPages)
|
||||||
|
|
|
@ -116,8 +116,11 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
Input.Instance.Update();
|
Input.Instance.Update();
|
||||||
string TempBindingStr = Input.Instance.GetNextPressedButtonOrNull();
|
string TempBindingStr = Input.Instance.GetNextPressedButtonOrNull();
|
||||||
if (wasPressed != "" && TempBindingStr == wasPressed) return;
|
if (wasPressed != "" && TempBindingStr == wasPressed)
|
||||||
if (TempBindingStr != null)
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (TempBindingStr != null)
|
||||||
{
|
{
|
||||||
if (TempBindingStr == "Escape")
|
if (TempBindingStr == "Escape")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue