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 9. Reading Text Input

In this chapter, you will

  • Discover how the keyboard works in Microsoft XNA.

  • Use enumerated types.

  • Use arrays and references.

  • Work with strings of text.

  • Create a message board program.

Using the Keyboard in XNA

The Xbox itself does not have a keyboard, but you can plug any Universal Serial Bus (USB) keyboard into an Xbox and it will work. XNA programs use the keyboard in the same way whether they are running on an Xbox or a Microsoft Windows PC. In this chapter, you explore how you can use the keyboard in your XNA games. At the same time, you find out more about how C# programs can manipulate text.

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