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