Refactor `AutoFireStickyXorAdapter.IncrementLoops`

This commit is contained in:
YoshiRulz 2024-08-23 01:57:14 +10:00
parent 5dd3dc7ae5
commit 72b2e78957
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 9 deletions

View File

@ -206,15 +206,8 @@ namespace BizHawk.Client.Common
public void IncrementLoops(bool lagged)
{
for (int i = 0; i < _boolPatterns.Count; i++)
{
_boolPatterns.ElementAt(i).Value.GetNextValue(lagged);
}
for (int i = 0; i < _axisPatterns.Count; i++)
{
_axisPatterns.ElementAt(i).Value.GetNextValue(lagged);
}
foreach (var v in _boolPatterns.Values) v.GetNextValue(lagged);
foreach (var v in _axisPatterns.Values) v.GetNextValue(lagged);
}
private List<string> _justPressed = new List<string>();