private void D3DContent_MouseDown(object sender, MouseEventArgs e) { Focus(); switch (e.Button) { case MouseButtons.Left: m_leftDown = true; if (_drawable.MouseLeftDown(e.X, e.Y)) { Invalidate(); } Capture = true; break; case MouseButtons.Middle: m_middleDown = true; if (_drawable.MouseMiddleDown(e.X, e.Y)) { Invalidate(); } Capture = true; break; case MouseButtons.Right: m_rightDown = true; if (_drawable.MouseRightDown(e.X, e.Y)) { Invalidate(); } Capture = true; break; } }
public override bool MouseMiddleDown(int x, int y) { if (_drawable == null) { return(false); } return(_drawable.MouseMiddleDown(x, y)); }
public bool MouseMiddleDown(int x, int y) { if (!_rect.DownAny) { UpdateCaptureFocus(x, y); } _rect.MouseMiddleDown(x, y); if (_target == null) { return(false); } else { return(_target.MouseMiddleDown(x, y)); } }