fix UDRL mutex. fixes issue #264
This commit is contained in:
parent
5d0cfcac52
commit
8447c46761
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue