Controller Config - some tweaks, but input widgets aren't working, dont' know why

This commit is contained in:
adelikat 2012-10-01 01:55:08 +00:00
parent 388f62f140
commit 6e7a906cf5
3 changed files with 18 additions and 3 deletions

View File

@ -182,7 +182,7 @@ namespace BizHawk.MultiClient
}
}
Queue<InputEvent> InputEvents = new Queue<InputEvent>();
Queue<InputEvent> InputEvents = new Queue<InputEvent>();
public InputEvent DequeueEvent()
{
lock (this)

View File

@ -38,6 +38,18 @@ namespace BizHawk.MultiClient
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)
{
foreach (Control control1 in tabControl1.TabPages)

View File

@ -116,8 +116,11 @@ namespace BizHawk.MultiClient
{
Input.Instance.Update();
string TempBindingStr = Input.Instance.GetNextPressedButtonOrNull();
if (wasPressed != "" && TempBindingStr == wasPressed) return;
if (TempBindingStr != null)
if (wasPressed != "" && TempBindingStr == wasPressed)
{
return;
}
else if (TempBindingStr != null)
{
if (TempBindingStr == "Escape")
{