SDL_GetNumHapticAxes(3)
π SDL_GetNumHapticAxes(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we talk about vibration and axes and honestly it's giving main character energy π
β¨ NAME β¨
SDL_GetNumHapticAxes β get the number of haptic axes the device has. fr fr that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_haptic.h>
int SDL_GetNumHapticAxes(SDL_Haptic *haptic);
like yes, one include, one function call, we love a low-effort slay π¦
π« DESCRIPTION π«
So the number of haptic axes? might be useful if you're working with the SDL_HapticDirection effect. that's it. that's the tea. ββ¨
think of it as a little vibe check for your rumble device β you ask how many axes it has, and it tells you. iconic behavior honestly π
π«Ά FUNCTION PARAMETERS π«Ά
hapticβ theSDL_Hapticdevice to query. bestie, this is the device you're asking about, so make sure it's the right one π
π RETURN VALUE π
Returns the number of axes on success π or -1 on failure π; call SDL_GetError() for more information. yes, always check your errors, no cap, the error function is right there waiting for you π₯Ί
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on anything older, it's not me, it's you π
not me writing a whole manual page about axes... but honestly? obsessed. periodt. β¨
Simple Directmedia Layer β SDL 3.4.18 β mwah, that's the version, that's the source, that's the whole entire vibe. stay haptic, bestie π«ΆππΈ
π¦ 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