SDL_Joysti...ectionState(3type)

πŸ’– SDL_JoystickConnectionState πŸ’–

okay bestie, so this is a page from the SDL3 DATATYPES manual β€” the SDL_JoystickConnectionState one β€” and it's literally so short and sweet, we're gonna get through it together in like two seconds 🫢


✨ NAME ✨

SDL_JoystickConnectionState β€” the possible connection states for a joystick device. that's it, that's the vibe πŸ’…


✨ SYNOPSIS ✨

no cap, this is the whole thing:

#include <SDL3/SDL_joystick.h>

typedef enum SDL_JoystickConnectionState
{
    SDL_JOYSTICK_CONNECTION_INVALID = -1,
    SDL_JOYSTICK_CONNECTION_UNKNOWN,
    SDL_JOYSTICK_CONNECTION_WIRED,
    SDL_JOYSTICK_CONNECTION_WIRELESS
} SDL_JoystickConnectionState;

four little enum values, all cozy in a row, each one a whole mood 🌈


✨ DESCRIPTION ✨

so here's the tea β˜• β€” this enum gets used by SDL_GetJoystickConnectionState to report how a device is connected to the system. that's the entire job. it's giving "small but essential" energy, and honestly? iconic πŸ‘‘

like, your controller could be plugged in, could be chillin' on bluetooth, could be... a mystery. this enum is the thing that tells you which one it is πŸŽ€


✨ AVAILABILITY ✨

this enum has been around since SDL 3.2.0 β€” so if you're on anything older, sorry bestie, it's not gonna be there 😭


fr fr, that's the whole page. short king behavior, but every detail matters πŸ’–

Simple Directmedia Layer made this one, and it's from SDL 3.4.18 β€” the SDL_JoystickConnectionState(3type) page itself 🌸 so if you ever need to cite it, that's your version number, bestie. tysm for reading, mwah πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from