DirectX SDK |
This section pertains only to application development in Visual Basic. See DirectInput C/C++ Tutorials.
This section contains the following tutorials, each providing step-by-step instructions for implementing DirectInput in a Visual Basic application:
The first tutorial shows how to add DirectInput keyboard support to an existing application, using event polling.
The next tutorial takes you through the steps of providing DirectInput mouse support in an application, using the exclusive cooperative level and event notification. The tutorial is based on the ScrawlB sample, and focuses on buffered data.
This tutorial shows how to enumerate all the joysticks connected to a system, how to create and initialize DirectInputDevice objects for each of them in a callback function, and how to retrieve immediate data.
The final tutorial shows how to implement simple force-feedback effects in an application.