From 9aceb512f07e4e87fc73ad95f30f9f60baa417e6 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 21 Mar 2016 16:13:28 -0500 Subject: [PATCH] fix automation of virtualpad analogsticks from movie playback --- .../tools/VirtualPads/controls/VirtualPadAnalogStick.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogStick.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogStick.cs index f562c323c0..089c08056b 100644 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogStick.cs +++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogStick.cs @@ -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)