Skip to content

Commit

Permalink
fix automation of virtualpad analogsticks from movie playback
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromus committed Mar 21, 2016
1 parent 66ae06f commit 9aceb51
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ private void SetAnalogControlFromNumerics()

private void SetNumericsFromAnalog()
{
_programmaticallyUpdatingNumerics = true;

if (AnalogStick.HasValue)
{
// Setting .Value of a numeric causes a draw, so avoid it unless necessary
Expand Down Expand Up @@ -225,6 +227,8 @@ private void SetNumericsFromAnalog()

manualR.ValueChanged += polarNumericChangedEventHandler;
manualTheta.ValueChanged += polarNumericChangedEventHandler;

_programmaticallyUpdatingNumerics = false;
}

private void AnalogStick_MouseDown(object sender, MouseEventArgs e)
Expand Down

0 comments on commit 9aceb51

Please sign in to comment.