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
Up to this point, we have demonstrated how to display fancy two-dimensional (2D) and ...