/// <summary> /// Creates a new instance of a haptic effect. /// </summary> /// <param name="effect">The effect.</param> /// <returns>The effect instance.</returns> public HapticEffectInstance NewEffect(HapticEffect effect) { var nativeEffect = effect.ToNative(); return(HapticEffectInstance.IndexToInstance(Pointer, Native.CheckError(Native.SDL_HapticNewEffect(Pointer, in nativeEffect)))); }
/// <summary> /// Creates a new instance of a haptic effect. /// </summary> /// <param name="effect">The effect.</param> /// <returns>The effect instance.</returns> public HapticEffectInstance NewEffect(HapticEffect effect) { var nativeEffect = effect.ToNative(); return(HapticEffectInstance.IndexToInstance(Native, SdlSharp.Native.CheckError(SdlSharp.Native.SDL_HapticNewEffect(Native, in nativeEffect)))); }