TAStudio - move the rightButtonHeld logic inside the TasListView object rather than being tastudio logic
This commit is contained in:
parent
8d0d5ef98d
commit
e6c99db9ff
|
@ -18,6 +18,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
public bool RightButtonHeld { get; set; }
|
||||
|
||||
public int? LastSelectedIndex
|
||||
{
|
||||
get
|
||||
|
@ -127,16 +129,24 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
protected override void OnMouseDown(MouseEventArgs e)
|
||||
{
|
||||
if (InputPaintingMode)
|
||||
if (e.Button == MouseButtons.Left && InputPaintingMode)
|
||||
{
|
||||
IsPaintDown = true;
|
||||
}
|
||||
|
||||
if (e.Button == MouseButtons.Right)
|
||||
{
|
||||
RightButtonHeld = true;
|
||||
}
|
||||
|
||||
base.OnMouseDown(e);
|
||||
}
|
||||
|
||||
protected override void OnMouseUp(MouseEventArgs e)
|
||||
{
|
||||
IsPaintDown = false;
|
||||
RightButtonHeld = false;
|
||||
|
||||
base.OnMouseUp(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
private float _floatPaintState;
|
||||
private bool _startMarkerDrag;
|
||||
private bool _startFrameDrag;
|
||||
private bool _rightMouseHeld = false;
|
||||
|
||||
private readonly Color CurrentFrame_FrameCol = Color.FromArgb(0xCFEDFC);
|
||||
private readonly Color CurrentFrame_InputLog = Color.FromArgb(0xB5E7F7);
|
||||
|
@ -199,10 +198,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (e.Button == MouseButtons.Right)
|
||||
{
|
||||
_rightMouseHeld = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -241,12 +236,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
_startBoolDrawColumn = string.Empty;
|
||||
_startFloatDrawColumn = string.Empty;
|
||||
_floatPaintState = 0;
|
||||
_rightMouseHeld = false;
|
||||
}
|
||||
|
||||
private void TasView_MouseWheel(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (_rightMouseHeld && TasView.PointedCell.Row.HasValue)
|
||||
if (TasView.RightButtonHeld && TasView.PointedCell.Row.HasValue)
|
||||
{
|
||||
if (e.Delta < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue