SDL_GamepadButtonLabel(3type)

๐Ÿ’– SDL_GamepadButtonLabel ๐Ÿ’–

okay bestie, welcome to the SDL_GamepadButtonLabel page from the SDL3 DATATYPES collection โœจ it's a little enum, it's iconic, let's get into it ๐ŸŽ€


โœจ NAME โœจ

SDL_GamepadButtonLabel โ€” the set of gamepad button labels ๐ŸŽฎ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <SDL3/SDL_gamepad.h>

typedef enum SDL_GamepadButtonLabel
{
    SDL_GAMEPAD_BUTTON_LABEL_UNKNOWN,
    SDL_GAMEPAD_BUTTON_LABEL_A,
    SDL_GAMEPAD_BUTTON_LABEL_B,
    SDL_GAMEPAD_BUTTON_LABEL_X,
    SDL_GAMEPAD_BUTTON_LABEL_Y,
    SDL_GAMEPAD_BUTTON_LABEL_CROSS,
    SDL_GAMEPAD_BUTTON_LABEL_CIRCLE,
    SDL_GAMEPAD_BUTTON_LABEL_SQUARE,
    SDL_GAMEPAD_BUTTON_LABEL_TRIANGLE
} SDL_GamepadButtonLabel;

like. look at her. nine little constants and she's carrying the whole button-prompt industry on her back ๐Ÿ˜ญ๐Ÿ‘‘


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so real talk โ€” this is not a complete set, bestie. it's just the face buttons, and the whole point is that it makes it easy to show button prompts ๐Ÿซถ that's the vibe. nothing more, nothing less.

if you want a complete set, you're gonna have to do the work yourself: look at the button and the gamepad type, and then have a set of symbols that work well with your art style ๐ŸŽจโœจ iykyk.


โญ AVAILABILITY โญ

this enum has been available since SDL 3.2.0 ๐Ÿ’– so if you're on anything older, she is simply not there yet, no cap.


๐Ÿ’€ heads up bestie: do not treat this as the full library of button labels. it's the face buttons only โ€” anything beyond that is on you and your art style. periodt.

and that's the page!! ๐ŸŒˆ brought to you by Simple Directmedia Layer, running on SDL 3.4.18, and yes she's still out here living her best SDL_GamepadButtonLabel(3type) life ๐ŸŽ€๐Ÿ’œ bye bestie, go prompt some buttons โœจ

๐Ÿ“ฆ where this page comes from