From 61134cdedfec674abe1c7fef39d4946d9b8cd49d Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Mon, 7 Nov 2022 04:32:17 +1000 Subject: [PATCH 1/2] (broken) Use NS cursor for TAStudio axis double-click-and-drag --- src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 484e27ac0db..3589f0da847 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -697,6 +697,7 @@ private void TasView_MouseDown(object sender, MouseEventArgs e) { AxisEditColumn = buttonName; BeginAxisMouseEdit(e.Y); + Cursor = Cursors.SizeNS; } RefreshDialog(); @@ -905,6 +906,8 @@ private void ClearLeftMouseStates() MainForm.BlockFrameAdvance = false; + Cursor = Cursors.Default; + RefreshDialog(); // Even if no edits happened, the undo form may need updating because we potentially ended a batch. } From b88623b0218e08b2418a766beeaeb7981ae1df8a Mon Sep 17 00:00:00 2001 From: SuuperW Date: Thu, 19 Mar 2026 14:52:25 -0500 Subject: [PATCH 2/2] do not manually specify the default cursor --- .../CustomControls/InputRoll/InputRoll.cs | 2 +- .../tools/TAStudio/TAStudio.ListView.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index d75371c11e8..c05480d4e17 100644 --- a/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -1077,7 +1077,7 @@ protected override void OnMouseMove(MouseEventArgs e) Cursor = IsHoveringOnColumnEdge || _columnResizing != null ? Cursors.VSplit - : Cursors.Default; + : null; // use parent's cursor base.OnMouseMove(e); } diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 3589f0da847..efc07cb0692 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -80,6 +80,8 @@ private void BeginAxisMouseEdit(int yPos) _axisRestoreId = CurrentTasMovie.ChangeLog.MostRecentId; CurrentTasMovie.ChangeLog.BeginNewBatch($"Axis mouse edit, frame {TasView.SelectedRows.First()}"); + + Cursor = Cursors.SizeNS; } public bool AxisEditingMode => AxisEditColumn != null; @@ -697,7 +699,6 @@ private void TasView_MouseDown(object sender, MouseEventArgs e) { AxisEditColumn = buttonName; BeginAxisMouseEdit(e.Y); - Cursor = Cursors.SizeNS; } RefreshDialog(); @@ -906,7 +907,7 @@ private void ClearLeftMouseStates() MainForm.BlockFrameAdvance = false; - Cursor = Cursors.Default; + Cursor = null; RefreshDialog(); // Even if no edits happened, the undo form may need updating because we potentially ended a batch. }