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