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_GamepadHasAxis - Query whether a gamepad has a given axis.

Availability

       This function is available since SDL 3.2.0.

Description

       This  merely  reports whether the gamepad's mapping defined this axis, as that is all the information SDL
       has about the physical device.

Function Parameters

gamepad
              a gamepad.

       axis   an axis enum value (an SDL_GamepadAxis value).

Name

       SDL_GamepadHasAxis - Query whether a gamepad has a given axis.

Return Value

       Returns true if the gamepad has this axis, false otherwise.

See Also

SDL_GamepadHasButton(3), SDL_GetGamepadAxis(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_GamepadHasAxis(3)

Synopsis

#include<SDL3/SDL_gamepad.h>boolSDL_GamepadHasAxis(SDL_Gamepad*gamepad,SDL_GamepadAxisaxis);

See Also