SDL_GetGamep...NameForButton(3)
๐ SDL_GetGamepadAppleSFSymbolsNameForButton ๐
okay bestie, so this one lives in the SDL3 FUNCTIONS corner of the SDL3 manual, and it's literally the glow-up you need if you're on Apple platforms and you want your gamepad buttons to have those cute little SF Symbols names. ๐
โจ NAME โจ
SDL_GetGamepadAppleSFSymbolsNameForButton โ return the sfSymbolsName for a given button on a gamepad, but only on Apple platforms, bestie. ๐โจ
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_gamepad.h>
const char * SDL_GetGamepadAppleSFSymbolsNameForButton(SDL_Gamepad *gamepad, SDL_GamepadButton button);
like, that's the whole vibe. two args in, a string out. no cap. ๐
๐ฆ FUNCTION PARAMETERS ๐ฆ
gamepadโ the gamepad you're querying, bestie. the one you want the tea about. ๐ฎbuttonโ a button on that gamepad. yes, an actual button, we're not doing vibes-only here. ๐
โญ RETURN VALUE โญ
It returns the sfSymbolsName, or NULL if the name can't be found. ๐ญ
fr fr, NULL is a real possible answer here โ it's not a "this never happens" situation. always check, bestie. ๐ซถ
๐ง THREAD SAFETY ๐ง
It is safe to call this function from any thread. go off, queen, spawn all the threads you want. ๐ฅ
๐ AVAILABILITY ๐
This function is available since SDL 3.2.0. so if you're on anything older, it's giving "not yet, babe". ๐
๐ SEE ALSO ๐
SDL_GetGamepadAppleSFSymbolsNameForAxis(3)โ the axis-flavored sibling, go read it too, iykyk. ๐น๏ธ
and that's the whole page, periodt. ๐ this lil icon of a manpage is brought to you by Simple Directmedia Layer, version SDL 3.4.18 โ mwah, love that for us. ๐โจ๐ฆ
๐ฆ 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