#pragma section-numbers off #pragma disable-camelcase || DRAFT|| = SDL_HapticDestroyEffect = Use this function to destroy a haptic effect on the device. <> == Syntax == {{{#!highlight cpp void SDL_HapticDestroyEffect(SDL_Haptic* haptic, int effect) }}} == Function Parameters == ||'''haptic'''||the SDL_Haptic device to destroy the effect on|| ||'''effect'''|| /* ID */ identifier of the haptic effect to destroy|| == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == This will stop the effect if it's running. Effects are automatically destroyed when the device is closed. == Version == This function is available since SDL 2.0.0. == Related Functions == .[[SDL_HapticNewEffect]] ---- [[CategoryAPI]], [[CategoryForceFeedback]]