SDL_GamepadHasAxis

Query whether a gamepad has a given axis.

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

extern (C) nothrow @nogc extern
bool
SDL_GamepadHasAxis

Parameters

gamepad SDL_Gamepad*

a gamepad.

axis SDL_GamepadAxis

an axis enum value (an SDL_GamepadAxis value).

Return Value

Type: bool

true if the gamepad has this axis, false otherwise.

See Also

Meta