SDL_GetGamepadButtonLabel(3)

๐Ÿ’– NAME ๐Ÿ’–

SDL_GetGamepadButtonLabel โ€” bestie, this is the one that tells you what a button on a gamepad is actually labelled. Like, the little name it goes by. The vibe of the button. Okay?? ๐ŸŽฎโœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <SDL3/SDL_gamepad.h>

SDL_GamepadButtonLabel SDL_GetGamepadButtonLabel(SDL_Gamepad *gamepad, SDL_GamepadButton button);

๐ŸŽ€ FUNCTION PARAMETERS ๐ŸŽ€

  • gamepad โ€” a gamepad. that's it. that's the whole description. it's giving "we trust you know what a gamepad is" ๐Ÿ’…
  • button โ€” a button index (one of the SDL_GamepadButton values). so like, which button are we asking about, bestie ๐Ÿซถ

โญ RETURN VALUE โญ

It hands you back the SDL_GamepadButtonLabel enum that corresponds to the button label. no cap, that's literally the whole return โ€” the label enum, matching whichever button you asked about. ๐Ÿฆ‹


๐Ÿงš THREAD SAFETY ๐Ÿงš

Go off, queen โ€” it is safe to call this function from any thread. main character energy across every thread simultaneously. ๐Ÿ”ฅ๐Ÿ‘‘


๐ŸŒˆ AVAILABILITY ๐ŸŒˆ

This function has been available since SDL 3.2.0. she's been here, she's iconic, she's not new ๐Ÿ’œ


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘


ok so real talk โ€” if you wanna know what a button is called on a gamepad, this is the function, and now you know, iykyk ๐Ÿ’–

mwah ๐Ÿ’‹ that's a wrap on the SDL3 FUNCTIONS page for SDL_GetGamepadButtonLabel(3) โ€” brought to you by Simple Directmedia Layer, SDL 3.4.18, slay forever and ever, periodt โœจ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from