From a72286eb5a91c05018919233a3b4e374a49cce20 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 4 Jul 2020 10:17:01 -0400 Subject: [PATCH] TAStudio: More analog control jump fixes --- .../tools/TAStudio/TAStudio.ListView.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 38468f0f34..90733e6c54 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -591,8 +591,6 @@ namespace BizHawk.Client.EmuHawk _axisPaintState = CurrentTasMovie.GetAxisState(frame, buttonName); _triggerAutoRestore = true; - JumpToGreenzone(); - return; } } @@ -1173,9 +1171,11 @@ namespace BizHawk.Client.EmuHawk } } + var getVal = CurrentTasMovie.GetAxisState(i, _startAxisDrawColumn); CurrentTasMovie.SetAxisState(i, _startAxisDrawColumn, setVal); // Notice it uses new row, old column, you can only paint across a single column - JumpToGreenzone(); - } + + if (getVal != setVal) { JumpToGreenzone(); } + } } CurrentTasMovie.IsCountingRerecords = wasCountingRerecords; @@ -1202,8 +1202,6 @@ namespace BizHawk.Client.EmuHawk var value = (_axisPaintState + increment).ConstrainWithin(ControllerType.Axes[_axisEditColumn].Range); CurrentTasMovie.SetAxisState(_axisEditRow, _axisEditColumn, value); _axisTypedValue = value.ToString(); - - JumpToGreenzone(); RefreshDialog(); } }