Platform SDK: DirectX

ForceFeedback Sample

[C++]

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

[Visual Basic]

Description

This sample is a simple force-feedback editor that allows you to create an effect, set parameters, and play the effect.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\Dinput\Src\FFeedback

Executable: (SDK root)\Samples\Multimedia\VBSamples\Dinput\Bin\ForceFeedback.exe

User's Guide

Select an effect type from the list, and modify the parameters. Play the effect by pressing the primary button on the joystick.

Programming Notes

The sample shows how to turn off the autocenter property and how to create and modify effects. Changes in effect parameters are applied immediately.