private void CreateController1()
        {
            Controller1 = new KeyboardController(_keyboardHandler);

            Controller1.SetMapping(Keys.Up, ShipActions.Thrust);
            Controller1.SetMapping(Keys.Left, ShipActions.TurnLeft);
            Controller1.SetMapping(Keys.Right, ShipActions.TurnRight);
            Controller1.SetMapping(Keys.Down, ShipActions.ReverseThrust);
            Controller1.SetMapping(Keys.RightControl, ShipActions.FireProjectile);
        }
        private void CreateController2()
        {
            Controller2 = new KeyboardController(_keyboardHandler);

            Controller2.SetMapping(Keys.W, ShipActions.Thrust);
            Controller2.SetMapping(Keys.A, ShipActions.TurnLeft);
            Controller2.SetMapping(Keys.D, ShipActions.TurnRight);
            Controller2.SetMapping(Keys.S, ShipActions.ReverseThrust);
            Controller2.SetMapping(Keys.R, ShipActions.FireProjectile);
        }
 public void SetUp()
 {
     _keyboardHandler = Substitute.For<IKeyboardHandler>();
     _keyboardHandler.IsPressed(Arg.Any<Keys>()).Returns(false);
     _keyboardController = new KeyboardController(_keyboardHandler);
     _keyboardController.SetMapping(Keys.A, ShipActions.Thrust);
     _keyboardController.SetMapping(Keys.B, ShipActions.FireProjectile);
     _keyboardController.SetMapping(Keys.C, ShipActions.Thrust | ShipActions.FireProjectile);
 }