From 26a37544acb79fc4173d5f152bf586ab3c03e5a2 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 19 Oct 2014 00:19:17 +0000 Subject: [PATCH] ditto for RightColumnClick --- .../tools/TAStudio/InputRoll.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index 5ee9780399..2e927c3234 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -1132,11 +1132,7 @@ namespace BizHawk.Client.EmuHawk if (e.Button == MouseButtons.Right) { - if (IsHoveringOnColumnCell) - { - ColumnRightClickEvent(ColumnAtX(e.X)); - } - else + if (!IsHoveringOnColumnCell) { RightButtonHeld = true; } @@ -1239,9 +1235,16 @@ namespace BizHawk.Client.EmuHawk protected override void OnMouseUp(MouseEventArgs e) { - if (e.Button == MouseButtons.Left && IsHoveringOnColumnCell) + if (IsHoveringOnColumnCell) { - ColumnClickEvent(ColumnAtX(e.X)); + if (e.Button == MouseButtons.Left) + { + ColumnClickEvent(ColumnAtX(e.X)); + } + else if (e.Button == MouseButtons.Right) + { + ColumnRightClickEvent(ColumnAtX(e.X)); + } } IsPaintDown = false;