SDL_GetGamepadStringForAxis - Convert from an SDL_GamepadAxis enum to a string.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
axis an enum value for a given SDL_GamepadAxis.
Name
SDL_GetGamepadStringForAxis - Convert from an SDL_GamepadAxis enum to a string.
Return Value
Returns a string for the given axis, or NULL if an invalid axis is specified. The string returned is of
the format used by SDL_Gamepad mapping strings.
See Also
SDL_GetGamepadAxisFromString(3) Simple Directmedia Layer SDL 3.2.20 SDL_GetGamepadStringForAxis(3)
Synopsis
#include<SDL3/SDL_gamepad.h>constchar*SDL_GetGamepadStringForAxis(SDL_GamepadAxisaxis);
