Platform SDK: DirectX

JoystImm Sample

[Visual Basic]

This topic pertains only to application development in C and C++. See DirectInput Visual Basic Samples.

[C++]

Description

The JoystImm sample obtains and displays joystick data.

Path

Source: (SDK root)\Samples\Multimedia\DInput\Src\JoystImm

Executable: (SDK root)\Samples\Multimedia\DInput\Bin

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.