Exemple #1
0
        private void ManagerInputOnFireNewInput(object sender, NewInputEventArgs e)
        {
            switch (e.Input)
            {
            case Input.Left:
                _managerCamera.Move(Direction.Left);
                break;

            case Input.Right:
                _managerCamera.Move(Direction.Right);
                break;

            case Input.Up:
                _managerCamera.Move(Direction.Up);
                break;

            case Input.Down:
                _managerCamera.Move(Direction.Down);
                break;
            }

            _mainForm.UpdateCameraPositionText();
        }
Exemple #2
0
 public void MoveCamera(Direction direction)
 {
     _managerCamera.Move(direction);
 }