pub unsafe extern "C" fn SDL_GameControllerGetBindForButton(
    gamecontroller: *mut SDL_GameController,
    button: SDL_GameControllerButton
) -> SDL_GameControllerButtonBind
Expand description

Get the SDL joystick layer binding for a controller button mapping.

\param gamecontroller a game controller \param button an button enum value (an SDL_GameControllerButton value) \returns a SDL_GameControllerButtonBind describing the bind. On failure (like the given Controller button doesn’t exist on the device), its .bindType will be SDL_CONTROLLER_BINDTYPE_NONE.

\since This function is available since SDL 2.0.0.

\sa SDL_GameControllerGetBindForAxis