This tutorial will deal with getting input using Direct Input. All you will need to run and / or compile this tutorial is a keybaord, mouse, DirectX 8.0 or 9.0 and the DirectX 8.0 or 9.0 SDK.
File list:
CDirectInput.cpp
CDirectInput.h
DInput.cpp
DInput.dsp
DInput.dsw
DInput.exe
DInput.ncb
DInput.opt
DInput.plg
icon1.ico

ReadMe.txt
resource.h
UGP.rc