Microsoft DirectX 8.1 (C++)

ReadFFE Sample

Description

The ReadFFE sample program enumerates and plays all of the Microsoft® DirectInput® force-feedback effects stored in a DirectInput effect 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 effect (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.