SDL_PauseHaptic(3)
β¨ SDL_PauseHaptic(3) β¨
okay so bestie π welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_PauseHaptic β the little function that hits pause on your haptic device. no cap.
π NAME π
SDL_PauseHaptic β pause a haptic device. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_haptic.h>
bool SDL_PauseHaptic(SDL_Haptic *haptic);
like, include the header, call the function, get a bool. iconic. β¨
πΈ DESCRIPTION πΈ
so here's the tea, bestie π β your device must support the SDL_HAPTIC_PAUSE feature, or this whole thing is not giving. when you're done pausing and you want the rumble back, call SDL_ResumeHaptic() to resume playback. π«Ά
β οΈ IMPORTANT WARNING β οΈ do not modify the effects or add new ones while the device is paused. literally do not. it can cause all sorts of weird errors and we are NOT doing that today. ππ
π§ FUNCTION PARAMETERS π§
hapticβ theSDL_Hapticdevice you want to pause. that's your girl. the one getting paused. π
β RETURN VALUE β
returns true on success or false on failure β and if it's a fail, call SDL_GetError() for more info, because the function is not gonna spill the details itself. π
π AVAILABILITY π
this function has been available since SDL 3.2.0. she's been around. she's established. periodt. π
π SEE ALSO π
SDL_ResumeHaptic(3)β the un-pause. the comeback. the sequel. π₯
and that's the whole page, bestie!! this came to you from Simple Directmedia Layer, version SDL 3.4.18 π¦ β go forth and pause responsibly, mwah π β¨π
π¦ 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