官术网_书友最值得收藏!

Chapter 3. Adding the Input

We have images on the screen, and we can see the start of a game forming, but it wouldn't be much of a game without some interactivity. The keyboard and mouse, gamepad, touch screen, or motion control—if you've played a video game then you have used one of these to tell the game what you want it to do. We need a way to play the game, and in this chapter we'll look at some of the different options that are available to get that input into the game, and add some interactivity.

Over the course of this chapter you'll learn how to add input to your game, and we'll take this further by explaining and understanding the different types of input, as well as how to use the different input devices in Windows 8.

You'll understand the following later in the chapter:

  • Types of input
  • The Pointer API
  • Keyboard input
  • XInput for the Microsoft Xbox 360 Controller
主站蜘蛛池模板: 嫩江县| 曲周县| 巴彦淖尔市| 民县| 天等县| 岳西县| 原平市| 玛纳斯县| 称多县| 湘潭市| 怀安县| 从江县| 牡丹江市| 柳林县| 贺州市| 昔阳县| 安乡县| 太仆寺旗| 连州市| 军事| 舟山市| 上蔡县| 布拖县| 岳阳县| 潼关县| 泽库县| 景宁| 文登市| 新兴县| 巫山县| 无棣县| 内黄县| 东明县| 日照市| 稷山县| 宜兰县| 土默特右旗| 乡宁县| 临海市| 华亭县| 沾益县|