Get the SDL joystick layer bindings for a gamepad.
Defined in <SDL3/SDL_gamepad.h>
extern SDL_DECLSPEC SDL_GamepadBinding **SDLCALL SDL_GetGamepadBindings(SDL_Gamepad *gamepad, int *count);
gamepad | a gamepad |
count | a pointer filled in with the number of bindings returned |
Returns a NULL terminated array of pointers to bindings which should be freed with SDL_free(), or NULL on error; call SDL_GetError() for more details.
This function is available since SDL 3.0.0.