BananaMpq.View.Views.MainWindow.OnMouseMove C# (CSharp) 메소드

OnMouseMove() 개인적인 메소드

private OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs args ) : void
sender object
args System.Windows.Input.MouseEventArgs
리턴 void
        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;
            }
        }