Example #1
0
        /// <summary>
        /// Gets the effects stored in a RIFF Force Feedback file.
        /// </summary>
        /// <param name="fileName">Name of the file.</param>
        /// <param name="effectFileFlags">Flags used to filter effects.</param>
        /// <returns>A collection of <see cref="EffectFile"/></returns>
        public IList <EffectFile> GetEffectsInFile(string fileName, EffectFileFlags effectFileFlags)
        {
            var enumEffectsInFileCallback = new EnumEffectsInFileCallback();

            EnumEffectsInFile(fileName, enumEffectsInFileCallback.NativePointer, IntPtr.Zero, effectFileFlags);
            return(enumEffectsInFileCallback.EffectsInFile);
        }
Example #2
0
 /// <summary>
 /// Gets the effects stored in a RIFF Force Feedback file.
 /// </summary>
 /// <param name="fileName">Name of the file.</param>
 /// <param name="effectFileFlags">Flags used to filter effects.</param>
 /// <returns>A collection of <see cref="EffectFile"/></returns>
 public IList<EffectFile> GetEffectsInFile(string fileName, EffectFileFlags effectFileFlags)
 {
     var enumEffectsInFileCallback = new EnumEffectsInFileCallback();
     EnumEffectsInFile(fileName, enumEffectsInFileCallback.NativePointer, IntPtr.Zero, effectFileFlags);
     return enumEffectsInFileCallback.EffectsInFile;
 }