fix #1447
This commit is contained in:
parent
c063319816
commit
a2846ea8e6
|
@ -144,10 +144,10 @@ namespace BizHawk.Client.Common
|
||||||
_myBoolButtons[button] = Global.AutofireStickyXORAdapter.IsSticky(button);
|
_myBoolButtons[button] = Global.AutofireStickyXORAdapter.IsSticky(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
// float controls don't have sticky logic. but old values remain in MovieOutputHardpoint if we don't update this here
|
// float controls don't have sticky logic, so latch default value
|
||||||
foreach (var name in Definition.FloatControls)
|
for (int i = 0; i < Definition.FloatControls.Count; i++)
|
||||||
{
|
{
|
||||||
_myFloatControls[name] = Global.AutofireStickyXORAdapter.GetFloat(name);
|
_myFloatControls[Definition.FloatControls[i]] = Definition.FloatRanges[i].Mid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
void LatchFromSource(IController source);
|
void LatchFromSource(IController source);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Used by tastudio when it appends new frames in HandleMovieAfterFrameLoop() and ExtendMovieForEdit().
|
||||||
|
/// For buttons it latches autohold state, for analogs it latches mid value.
|
||||||
|
/// All real user input latched by LatchFromPhysical() is ignored.
|
||||||
|
/// </summary>
|
||||||
void LatchSticky();
|
void LatchSticky();
|
||||||
|
|
||||||
void SetControllersAsMnemonic(string mnemonic);
|
void SetControllersAsMnemonic(string mnemonic);
|
||||||
|
|
Loading…
Reference in New Issue