Chapter 18. Exploring Touch Input

  • Touch input management.

  • Simple touch input: creating a panic button.

  • Simple touch input: creating a set of “touch drums.”

  • Touch tracking.

  • Touch event life cycle.

  • Using touch to move game objects around.

  • Creating a shuffleboard game.

Introduction

The Windows Phone device does not provide any gamepads you can access from an XNA program, but it is fitted with a touch screen you can use to get input from a player.

In this chapter, we’ll develop some games for Windows Phone 7 that use the touch panel. We’ll start with an upgrade to the drums we created in Chapter 7, and then move on to how we can use touch to allow a player to move items around the screen.

The Windows Phone Touch Screen

All Windows Phones are fitted with capacitive ...

Get Microsoft® XNA® Game Studio 4.0: Learn Programming Now! 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.