Chapter 5. Input Devices and Cameras

IN THIS CHAPTER

We created the camera in the last chapter but it did not move. We did not allow any input (other than exiting the demo with the GamePad’s Back button, which the template provides for us). We are going to change that now. We are going to learn how to use our input devices (keyboard, mouse, and game pad controller) by working with our camera. To accomplish this we are going to start a game library that we can utilize in our demos and games. Let’s get started!

Creating a Game Service

Instead of just throwing input and camera code inside of another demo, ...

Get Microsoft® XNA™ Unleashed: Graphics and Game Programming for Xbox 360 and Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.