Microsoft DirectX 8.1 (Visual Basic)

Tutorial 1: Using the Keyboard

To prepare for keyboard input, you first create a DirectInput8 object. Then you create a DirectInputDevice8 object representing the keyboard. The DirectInputDevice8 class methods are used to set the behavior of the device and retrieve data.

The tutorial divides the required tasks into the following steps.