O'Reilly logo

XNA® 3.1 Game Development for Teens: Game Development on the PC, Xbox 360®, and Zune® Player by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Collecting User Input

To interact with players, XNA games must be able to collect their input. XNA provides you with everything you need to develop PC and Xbox games that can interact with players using either a keyboard or gamepad controllers. XNA lets you create games on the Zune, using the Zune button and joypad controller. This chapter will identify the XNA classes that support interaction with different game controllers and show you how to work with them.

An overview of the major topics covered in this chapter includes learning how to:

  • Detect gamepads and react when the player presses buttons

  • Collect user input using the gamepad thumbpads and the Dpad

  • Collect user keyboard input

  • Collect input when your games are played on the Zune

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required