The following sample programs demonstrate the use and capabilities of DirectInput:
In addition to the samples that come complete with source code, the DirectX Programmer's Reference includes a utility (in the \Bin directory of the DirectInput samples) called DirectInput Quick Test (Diquick.exe). This is a tool for learning about driver support for devices and experimenting with device parameters.
Although DirectX samples include Microsoft® Visual C++® project workspace files, you might need to verify other settings in your development environment to ensure that the samples compile properly. For more information, see Compiling DirectX Samples and Other DirectX Applications.