Function SDL_GamepadHasAxis

pub unsafe extern "C" fn SDL_GamepadHasAxis(
    gamepad: *mut SDL_Gamepad,
    axis: SDL_GamepadAxis,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

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.

§Parameters

§Return value

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

§Availability

This function is available since SDL 3.2.0.

§See also