Joystick Sample
Microsoft DirectX 9.0 SDK Update (October 2004)

Joystick Sample


Description

The Joystick sample program obtains and displays joystick data.

Path

Source:(SDK root)\Samples\C++\DirectInput\Joystick
Executable:(SDK root)\Samples\C++\DirectInput\Bin\Joystick.exe

User's Guide

Observe how the displayed data changes when you move and twist the stick, rotate the throttle wheel, and press buttons in various combinations.

Programming Notes

The application polls the joystick for immediate data in response to a timer set inside the dialog procedure.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.