DirectX SDK |
This topic pertains only to application development in C and C++. See DirectInput Visual Basic Samples.
This sample shows how to read and create effects from a file created by Force Editor.
Source: (SDK root)\Samples\Multimedia\DInput\Src\FFFileRead
Executable: (SDK root)\Samples\Multimedia\DInput\Bin\FFeedFileRead.exe
Media: (SDK root)\Samples\Multimedia\DInput\Media
Click Read File and load a supplied .ffe file from the Media folder or one of your own files. Then click Play Effects.
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.