Function sdl2_sys::SDL_GameControllerGetBindForAxis
source · pub unsafe extern "C" fn SDL_GameControllerGetBindForAxis(
gamecontroller: *mut SDL_GameController,
axis: SDL_GameControllerAxis,
) -> SDL_GameControllerButtonBind
Expand description
Get the SDL joystick layer binding for a controller axis mapping.
\param gamecontroller a game controller
\param axis an axis enum value (one of the SDL_GameControllerAxis values)
\returns a SDL_GameControllerButtonBind describing the bind. On failure
(like the given Controller axis 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_GameControllerGetBindForButton