Now, it is time to invite your project manager to control the game using the gamepad's left mini stick in a Silverlight application:
1. Stay in the
SilverlightInvaders2DVector
project.2. Keep the same configuration previously explained for the gamepad.
3. Build and run the solution. Click on the button and move the ship to the aliens, using the left mini stick. You will be able to move and stop the ship according to the mouse pointer's position, using the gamepad, as shown in the following picture:
4. Repeat the experience using the gamepad's POV control to move the ship.
By using the keyboard manager, the mouse manager, and configuring the gamepad's driver, you could take into account its input to control a game running as a Silverlight application.
Again, we did not have to change a single line of code. Firstly, we had to take the input from the mouse, taking into account its movement during the time taken to render one frame...