Multitrack recording - support analog input

This commit is contained in:
adelikat 2015-01-25 19:21:50 +00:00
parent 8fe850ba1b
commit 1235246d19
1 changed files with 18 additions and 0 deletions

View File

@ -106,6 +106,24 @@ namespace BizHawk.Client.Common
var val = playerSource[button];
MyBoolButtons[button] = val;
}
foreach (var button in Type.FloatControls)
{
var bnp = ButtonNameParser.Parse(button);
if (bnp == null)
{
continue;
}
if (bnp.PlayerNum != playerNum)
{
continue;
}
var val = playerSource.GetFloat(button);
MyFloatControls[button] = val;
}
}
/// <summary>