SDL_StopHapticRumble(3)

✨ SDL_StopHapticRumble(3) ✨

okay so bestie, you know that cute lil rumble you had going on your haptic device? yeah. we're shutting it down. this is the SDL3 function page for SDL_StopHapticRumble, and it does exactly one thing and it does it flawlessly πŸ’…


🌸 NAME 🌸

SDL_StopHapticRumble β€” stop the simple rumble on a haptic device, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_haptic.h>

bool SDL_StopHapticRumble(SDL_Haptic *haptic);

πŸ’– FUNCTION PARAMETERS πŸ’–

  • haptic β€” the haptic device you wanna stop the rumble effect on. that's it. that's the whole job. give it the device, it kills the vibe (the rumble vibe, specifically).

πŸ¦‹ RETURN VALUE πŸ¦‹

returns true when it works out and false when it does not β€” and if it's giving failure, hit up SDL_GetError() for the tea, it'll tell you more. πŸ”₯


🌈 AVAILABILITY 🌈

this one has been around since SDL 3.2.0, so it's lowkey established, been here, iconic behavior. πŸ‘‘


🌟 SEE ALSO 🌟

  • SDL_PlayHapticRumble(3) β€” the other half of the story, the one that starts the rumble. the way these two are literally a matched set 🫢

ngl, if you call stop without ever calling play, that's between you and your haptic device πŸ™ˆ

and that's the whole page, fr fr. this absolute gem of a function lives in the Simple Directmedia Layer docs for SDL 3.4.18, so shoutout to SDL for keeping the rumble situation fully under control πŸ’œ stay buzzy, bestie βœ¨πŸŽ€

πŸ“¦ where this page comes from