(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_GameControllerButtonBind

Get the SDL joystick layer binding for this controller button/axis mapping

Header File

Defined in SDL_gamecontroller.h

Syntax

typedef struct SDL_GameControllerButtonBind
{
    SDL_GameControllerBindType bindType;
    union
    {
        int button;
        int axis;
        struct {
            int hat;
            int hat_mask;
        } hat;
    } value;

} SDL_GameControllerButtonBind;

CategoryAPI, CategoryAPIStruct, CategoryGameController