示例#1
0
文件: Backend.cs 项目: ctxQ/ScottPlot
 public void MouseDown(InputState input)
 {
     IsMiddleDown          = input.MiddleWasJustPressed;
     IsRightDown           = input.RightWasJustPressed;
     IsLeftDown            = input.LeftWasJustPressed;
     PlottableBeingDragged = GetDraggableUnderMouse(input.X, input.Y);
     Settings.MouseDown(input.X, input.Y);
 }
示例#2
0
 public void MouseDown(InputState input)
 {
     if (!Settings.AllAxesHaveBeenSet)
     {
         Plot.SetAxisLimits(Plot.GetAxisLimits());
     }
     IsMiddleDown          = input.MiddleWasJustPressed;
     IsRightDown           = input.RightWasJustPressed;
     IsLeftDown            = input.LeftWasJustPressed;
     PlottableBeingDragged = GetDraggableUnderMouse(input.X, input.Y);
     Settings.MouseDown(input.X, input.Y);
 }