KeybdBuf Sample

Description

The KeybdBuf program obtains and displays keyboard data.

Path

Source: (SDK root)\Samples\Multimedia\DInput\src\KeybdBuf

Executable: (SDK root)\Samples\Multimedia\DInput\bin

User's Guide

Each time you press or release a key, the event is recorded on the screen. Keys are identified by their index values (see Keyboard Device Constants).

Programming Notes

This sample illustrates how an application can use DirectInput to obtain buffered keyboard data.