private unsafe int DirectInputEnumEffectsInFileImpl(void* deviceInstance, IntPtr data)
 {
     var newEffect = new EffectFile();
     newEffect.__MarshalFrom(ref *((EffectFile.__Native*)deviceInstance));
     EffectsInFile.Add(newEffect);
     // Return true to continue iterating
     return 1;
 }
Example #2
0
        private unsafe int DirectInputEnumEffectsInFileImpl(void *deviceInstance, IntPtr data)
        {
            var newEffect = new EffectFile();

            newEffect.__MarshalFrom(ref *((EffectFile.__Native *)deviceInstance));
            EffectsInFile.Add(newEffect);
            // Return true to continue iterating
            return(1);
        }
Example #3
0
 /// <summary>
 /// Writes the effects to file.
 /// </summary>
 /// <param name="fileName">Name of the file.</param>
 /// <param name="effects">The effects.</param>
 /// <param name="includeNonstandardEffects">if set to <c>true</c> [include nonstandard effects].</param>
 /// <returns>A <see cref = "T:SharpDX.Result" /> object describing the result of the operation.</returns>
 public void WriteEffectsToFile(string fileName, EffectFile[] effects, bool includeNonstandardEffects)
 {
     WriteEffectToFile(fileName, effects.Length, effects, (int)(includeNonstandardEffects?EffectFileFlags.IncludeNonStandard:0));
 }
Example #4
0
 /// <summary>
 /// Writes the effects to a file.
 /// </summary>
 /// <param name="fileName">Name of the file.</param>
 /// <param name="effects">The effects.</param>
 /// <returns>A <see cref = "T:SharpDX.Result" /> object describing the result of the operation.</returns>
 public void WriteEffectsToFile(string fileName, EffectFile[] effects)
 {
     WriteEffectsToFile(fileName, effects, false);
 }