fix UDRL mutex. fixes issue #264

This commit is contained in:
zeromus 2014-09-14 01:43:42 +00:00
parent 5d0cfcac52
commit 8447c46761
1 changed files with 19 additions and 2 deletions

View File

@ -114,15 +114,23 @@ namespace BizHawk.Client.Common
string prefix;
//TODO - someone please say what in the heck " C " is supposed to mean
if (button.Contains("Down") && !button.Contains(" C "))
{
prefix = button.GetPrecedingString("Down");
if (Source.IsPressed(prefix + "Up"))
{
return false;
}
}
if (button.Contains("Up") && !button.Contains(" C "))
{
prefix = button.GetPrecedingString("Up");
if (Source.IsPressed(prefix + "Down"))
return false;
}
if (button.Contains("Right") && !button.Contains(" C "))
{
prefix = button.GetPrecedingString("Right");
@ -132,6 +140,15 @@ namespace BizHawk.Client.Common
}
}
if (button.Contains("Left") && !button.Contains(" C "))
{
prefix = button.GetPrecedingString("Left");
if (Source.IsPressed(prefix + "Right"))
{
return false;
}
}
return Source.IsPressed(button);
}
}