O'Reilly logo

Beginning DirectX®11 Game Programming by Wendy Jones, Allen Sherrod

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 5. Input Detection and Response

Being able to interact with your virtual world is critical in any game—be it through the keyboard, mouse, or any number of other devices. In this chapter we’ll explain the benefits of the various options for performing input detection and how to use them.

In this chapter:

  • Examine the various methods of input detection

  • How DirectInput can make your life easier

  • How to detect the input devices currently installed

  • How to use keyboards, mice, and joysticks

  • How to use Xbox 360 controllers

I Need Input

Every game needs the ability to interact with its user. Whether through a keyboard, mouse, dance pad, or other device, your game needs a way of getting direction from the person playing. The input device can be used to drive ...

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