fix automation of virtualpad analogsticks from movie playback

This commit is contained in:
zeromus 2016-03-21 16:13:28 -05:00
parent 66ae06f96a
commit 9aceb512f0
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,8 @@ namespace BizHawk.Client.EmuHawk
private void SetNumericsFromAnalog()
{
_programmaticallyUpdatingNumerics = true;
if (AnalogStick.HasValue)
{
// Setting .Value of a numeric causes a draw, so avoid it unless necessary
@ -225,6 +227,8 @@ namespace BizHawk.Client.EmuHawk
manualR.ValueChanged += polarNumericChangedEventHandler;
manualTheta.ValueChanged += polarNumericChangedEventHandler;
_programmaticallyUpdatingNumerics = false;
}
private void AnalogStick_MouseDown(object sender, MouseEventArgs e)