Microsoft DirectX 8.0 (C++)

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\Multimedia\DirectInput\ReadFFE

Executable: (SDK root)\Samples\Multimedia\DirectInput\ReadFFE.exe

Media: (SDK root)\Samples\Multimedia\Media\*.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® 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.