Microsoft DirectX 8.1 (C++) |
This section contains five tutorials, each providing step-by-step instructions for implementing basic Microsoft® DirectInput® functionality in a C or C++ application.
The first tutorial shows how to add DirectInput keyboard support to an existing application.
The next tutorial takes you through the steps of providing DirectInput mouse support in an application. The tutorial is based on the Scrawl Sample, and focuses on buffered data.
This tutorial shows how to enumerate a joystick connected to a system, how to create and initialize a DirectInputDevice object in a callback function, and how to retrieve immediate data. Sample code is based on the Joystick Sample.
This tutorial illustrates the creation and manipulation of a simple effect on a force-feedback joystick.
The final tutorial takes you through the creation and application of an action map.
Note These tutorials are written using C++ style function calls. For instructions on writing Microsoft DirectX® function calls in a C environment, see Using C to Access COM Objects.