This commit is contained in:
feos 2019-06-16 10:40:57 +03:00
parent c063319816
commit a2846ea8e6
2 changed files with 8 additions and 3 deletions

View File

@ -144,10 +144,10 @@ namespace BizHawk.Client.Common
_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
foreach (var name in Definition.FloatControls)
// float controls don't have sticky logic, so latch default value
for (int i = 0; i < Definition.FloatControls.Count; i++)
{
_myFloatControls[name] = Global.AutofireStickyXORAdapter.GetFloat(name);
_myFloatControls[Definition.FloatControls[i]] = Definition.FloatRanges[i].Mid;
}
}

View File

@ -10,6 +10,11 @@ namespace BizHawk.Client.Common
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 SetControllersAsMnemonic(string mnemonic);