O'Reilly logo

Microsoft® XNA® Game Studio 4.0: Learn Programming Now! by Rob Miles

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 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 ...

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