Chapter 12. Adding Interactivity with User Input
Interactivity is the distinguishing factor between games and other forms of entertainment. User involvement and interaction is what makes a game different. Games allow for interactivity by using some type of user input, such as a keyboard or a gamepad, and then changing what is displayed on the screen based on that input. This chapter focuses on how to access the user input from a number of devices.
In this chapter, you learn:
• Access input data from the keyboard, mouse, and gamepad
• Handling multitouch screen input and gestures
• Reading accelerometer and location service data
Using Input in XNA Game Studio
Up to this point, we have demonstrated how to display fancy two-dimensional (2D) and ...
Get XNA Game Studio 4.0 Programming: Developing for Windows® Phone 7 and Xbox 360® 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.