table of contents
other versions
SDL_GetGamepadBindForAxis(3) | SDL3 FUNCTIONS | SDL_GetGamepadBindForAxis(3) |
NAME¶
SDL_GetGamepadBindForAxis - Get the SDL joystick layer binding for a gamepad axis mapping.
SYNOPSIS¶
#include "SDL3/SDL.h"
SDL_GamepadBinding SDL_GetGamepadBindForAxis(SDL_Gamepad *gamepad, SDL_GamepadAxis axis);
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns a SDL_GamepadBinding
describing the bind. On failure (like the given Controller axis doesn't exist
on the device), its .bindType will be
SDL_GAMEPAD_BINDTYPE_NONE .
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_GetGamepadBindForButton(3)
SDL 3.0.0 | SDL |