Microsoft DirectX 8.1 (C++) |
The Joystick sample program obtains and displays joystick data.
Source: (SDK root)\Samples\Multimedia\DirectInput\Joystick
Executable: (SDK root)\Samples\Multimedia\DirectInput\Bin\Joystick.exe
Observe how the displayed data changes when you move and twist the stick, rotate the throttle wheel, and press buttons in various combinations.
The application polls the joystick for immediate data in response to a timer set inside the dialog procedure.