SDL_StopHapticEffect(3)

πŸ’… SDL_StopHapticEffect β€” the SDL3 functions girlies

okay bestie, welcome to the manual page for SDL_StopHapticEffect, straight out of the SDL3 FUNCTIONS section πŸŽ€


✨ NAME ✨

SDL_StopHapticEffect β€” stop the haptic effect on its associated haptic device. that's it, that's the job πŸ’–


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_haptic.h>

bool SDL_StopHapticEffect(SDL_Haptic *haptic, SDL_HapticEffectID effect);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • haptic β€” the SDL_Haptic device to stop the effect on. like, which controller/rumbly thing are we talking to 🫢
  • effect β€” the ID of the haptic effect to stop. yes, the actual ID, not the vibe, not the concept, the ID ✨

⭐ RETURN VALUE ⭐

returns true on success or false on failure β€” and if it's giving failure, call SDL_GetError() for more information, because she will tell you what went wrong πŸ’€


🌈 AVAILABILITY 🌈

this function is available since SDL 3.2.0. no cap, it's not in the old ones 🧚


πŸ’œ SEE ALSO πŸ’œ

iykyk β€” one stops one effect, the other stops all of them, pick your fighter πŸ‘‘


lowkey important: this stops the effect, so if you wanted the rumble to keep going, bestie, that's a different function 😭

Simple Directmedia Layer wrote this, it's version SDL 3.4.18, and it's the SDL_StopHapticEffect(3) page. mwah, go stop some effects, you main character πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from