DirectX SDK |
This topic pertains only to application development in Visual Basic. See DirectInput C/C++ Samples.
The Joystick sample shows how to enumerate joysticks, set joystick properties, and get immediate data.
Source: (SDK root)\Samples\Multimedia\VBSamples\Dinput\Src\Joystick
Executable: (SDK root)\Samples\Multimedia\VBSamples\Dinput\Bin\Joystick.exe
Select a joystick from the list. The data from the axes and buttons is displayed.
The list box is unsorted so that the selection can easily be retrieved from the DirectInputEnumDevices collection.