SDL_DestroyHapticEffect(3)
π SDL_DestroyHapticEffect π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we are today learning how to yeet a haptic effect into the void π«Ά
β¨ NAME β¨
SDL_DestroyHapticEffect β destroy a haptic effect on the device, no cap π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_haptic.h>
void SDL_DestroyHapticEffect(SDL_Haptic *haptic, SDL_HapticEffectID effect);
π¦ DESCRIPTION π¦
so like. this one is the cleanup queen π it will stop the effect if it's running β like, mid-vibration, gone, bye β and then it destroys it.
and here's the lowkey best part: effects are automatically destroyed when the device is closed, so if you forget, the universe forgives you. fr fr. still, being tidy is main character energy β¨
π FUNCTION PARAMETERS π
hapticβ theSDL_Hapticdevice to destroy the effect on. the vibe holder, the hardware homegirl π«Άeffectβ the ID of the haptic effect to destroy. the little number that says which one gets the axe π₯
β AVAILABILITY β
this function is available since SDL 3.2.0 π
π SEE ALSO π
SDL_CreateHapticEffect(3)β the birth, if you will. every destroy needs its create π§
and that's the whole page, bestie, you ate π this was SDL_DestroyHapticEffect(3) from the SDL3 FUNCTIONS crew, brought to you by Simple Directmedia Layer, version SDL 3.4.18 π bye bye, go destroy responsibly π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms