logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetGamepadStringForAxis - Convert from an SDL_GamepadAxis enum to a string.

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);

See Also