fix TAStudio auto-loading, broken by ec5e88c8
(regression introducted in 2.6)
This commit is contained in:
parent
652b38d04c
commit
a95c4f1820
|
@ -479,8 +479,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
index += ControllerType.BoolButtons.Count - 1;
|
index += ControllerType.BoolButtons.Count - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoPatternBool p = BoolPatterns[index];
|
// Fixes auto-loading, but why is this code like this? The code above suggests we have a BoolPattern for every bool button? But we don't
|
||||||
InputManager.AutofireStickyXorAdapter.SetSticky(button, isOn.Value, p);
|
// This is a sign of a deeper problem, but this fixes some basic functionality at least
|
||||||
|
if (index < BoolPatterns.Length)
|
||||||
|
{
|
||||||
|
AutoPatternBool p = BoolPatterns[index];
|
||||||
|
InputManager.AutofireStickyXorAdapter.SetSticky(button, isOn.Value, p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -499,8 +504,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
value = 0;
|
value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
AutoPatternAxis p = AxisPatterns[index];
|
// Fixes auto-loading, but why is this code like this? The code above suggests we have a AxisPattern for every axis button? But we don't
|
||||||
InputManager.AutofireStickyXorAdapter.SetAxis(button, value, p);
|
// This is a sign of a deeper problem, but this fixes some basic functionality at least
|
||||||
|
if (index < BoolPatterns.Length)
|
||||||
|
{
|
||||||
|
AutoPatternAxis p = AxisPatterns[index];
|
||||||
|
InputManager.AutofireStickyXorAdapter.SetAxis(button, value, p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue