Platform SDK: DirectX

Tutorial 1: Using the Keyboard

[C++]

This topic pertains only to application development in Visual Basic. See DirectInput C/C++ Tutorials.

[Visual Basic]

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

The tutorial breaks down the required tasks into the following steps: