SDL_GetHapticName(3)
β¨ SDL_GetHapticName(3) β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we vibe with haptics π
this one's a lil function called SDL_GetHapticName, and yes it does exactly what it says on the tin, no cap.
π NAME π
SDL_GetHapticName β get the implementation dependent name of a haptic device. that's it, that's the whole job. lowkey iconic.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_haptic.h>
const char * SDL_GetHapticName(SDL_Haptic *haptic);
look at her. one include, one function, zero drama. π¦
π FUNCTION PARAMETERS π
hapticβ theSDL_Hapticyou got fromSDL_OpenJoystick(). like, you literally cannot pass anything else here, bestie, it's giving that specific haptic pointer and nothing more.
β RETURN VALUE β
She returns the name of the selected haptic device. slay. π«Ά
But listen β if no name can be found, this function returns NULL. π and if that happens? call SDL_GetError() for more information. periodt. don't just sit there staring at your NULL, go get the tea from the error function.
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something older, it's giving not for you, sorry babe. π
π SEE ALSO π
SDL_GetHapticNameForID(3)β her sister function, same energy, different ID-based angle. iykyk π
and that's the whole page, no notes. this lil slice of the manual came to you from Simple Directmedia Layer, version SDL 3.4.18 π go forth and name your haptics, bestie, 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