From 93f78a69d23eb9dc7f41ce76620b798c7f1b841f Mon Sep 17 00:00:00 2001 From: feos Date: Sun, 9 Oct 2016 17:14:39 +0300 Subject: [PATCH] tastudio: show cursor hotkey --- BizHawk.Client.Common/config/Binding.cs | 1 + BizHawk.Client.EmuHawk/MainForm.Hotkey.cs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/BizHawk.Client.Common/config/Binding.cs b/BizHawk.Client.Common/config/Binding.cs index 6f98ce0715..97e3231567 100644 --- a/BizHawk.Client.Common/config/Binding.cs +++ b/BizHawk.Client.Common/config/Binding.cs @@ -221,6 +221,7 @@ namespace BizHawk.Client.Common Bind("TAStudio", "Add Branch", "Alt+Insert"), Bind("TAStudio", "Delete Branch", "Alt+Delete"), + Bind("TAStudio", "Show Cursor"), Bind("TAStudio", "Toggle Follow Cursor", "Shift+F"), Bind("TAStudio", "Toggle Auto-Restore", "Shift+R"), Bind("TAStudio", "Toggle Turbo Seek", "Shift+S"), diff --git a/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs b/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs index c5fd91a6c2..4ccf026595 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs @@ -362,6 +362,13 @@ namespace BizHawk.Client.EmuHawk if (GlobalWin.Tools.IsLoaded()) GlobalWin.Tools.TAStudio.RemoveBranchExtrenal(); break; + case "Show Cursor": + if (GlobalWin.Tools.IsLoaded()) + { + GlobalWin.Tools.TAStudio.SetVisibleIndex(); + GlobalWin.Tools.TAStudio.RefreshDialog(); + } + break; case "Toggle Follow Cursor": if (GlobalWin.Tools.IsLoaded()) GlobalWin.Tools.TAStudio.TasPlaybackBox.FollowCursor ^= true;