private void OnMouseMove(object sender, MouseEventArgs args)
{
if (args.RightButton == MouseButtonState.Pressed)
{
var delta = Infrastructure.Cursor.Position - _pinnedMousePosition;
if (delta.X != 0 || delta.Y != 0)
{
Infrastructure.Cursor.Show = false;
Infrastructure.Cursor.Position = _pinnedMousePosition;
_chassis.HandleInputDelta(delta);
}
}
else if (args.LeftButton == MouseButtonState.Pressed)
{
_scenePresenter.UpdateAgent(args.GetPosition(_image),
!Keyboard.IsKeyDown(Key.LeftShift) && !Keyboard.IsKeyDown(Key.RightShift));
}
else
{
Infrastructure.Cursor.Show = true;
var modelFile = _scenePresenter.GetModelFileUnderCursor(args.GetPosition(_image));
_lblModelFile.Content = modelFile;
}
}