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

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
主站蜘蛛池模板: 银川市| 呈贡县| 兰西县| 河池市| 榆林市| 横峰县| 湘潭市| 汉寿县| 临邑县| 乐业县| 黄冈市| 隆安县| 黎川县| 江山市| 资讯 | 卓资县| 桦川县| 鸡泽县| 石阡县| 迭部县| 乐昌市| 绥滨县| 叙永县| 澜沧| 绥棱县| 长沙市| 梨树县| 万盛区| 台北市| 天长市| 麻江县| 麻阳| 建湖县| 保靖县| 南昌市| 仙桃市| 遂平县| 南川市| 万宁市| 岑巩县| 潮安县|