ReadFFE Sample
Microsoft DirectX 9.0 SDK Update (October 2004)

ReadFFE Sample


Description

The ReadFFE sample program enumerates and plays all of the Microsoft DirectInput force-feedback effects stored in a DirectInput effects file created by the Force Editor.

Path

Source:(SDK root)\Samples\C++\DirectInput\ReadFFE
Executable:(SDK root)\Samples\C++\DirectInput\Bin\ReadFFE.exe
Media:(SDK root)\Samples\C++\DirectInput\ReadFFE\*.ffe

User's Guide

Click Read File and open an existing Force Feedback Effects (FFE) file. If it was successfully read, click Play Effects to play the effects on the force-feedback device. FFE files can be authored using the Force Feedback Editor utility packaged with the Microsoft DirectX software development kit (SDK).

Programming Notes

For each file effect enumerated, the EnumAndCreateEffectsCallback function initializes an IDirectInputEffect pointer and adds it to a linked list. The OnPlayEffects function traverses this list and plays all effects.



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