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
- 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