DirectInput - microsoft/DirectX-SDK-Samples GitHub Wiki
These are the original DirectX SDK Windows desktop samples for the legacy DirectInput API updated to build with the Windows SDK without using the legacy DirectX SDK.
CustomFormat (December 2002)
This sample illustrates the use of a custom data format.
Joystick (December 2002)
The Joystick sample program obtains and displays joystick data.
FFConst (December 2002)
The FFConst sample program applies raw forces to a force-feedback input device, illustrating how a simulator-type application can use force feedback to generate forces computed by a physics engine.
The Keyboard and Mouse samples are not provided because using DirectInput for standard input is strongly discouraged. The Win32 messages are more efficient on all modern Windows platforms.