Пример #1
0
 private unsafe int DirectInputEnumEffectsImpl(void* deviceInstance, IntPtr data)
 {
     var newEffect = new EffectInfo();
     newEffect.__MarshalFrom(ref *((EffectInfo.__Native*)deviceInstance));
     EffectInfos.Add(newEffect);
     // Return true to continue iterating
     return 1;
 }
Пример #2
0
        private unsafe int DirectInputEnumEffectsImpl(void *deviceInstance, IntPtr data)
        {
            var newEffect = new EffectInfo();

            newEffect.__MarshalFrom(ref *((EffectInfo.__Native *)deviceInstance));
            EffectInfos.Add(newEffect);
            // Return true to continue iterating
            return(1);
        }