Function sdl2_sys::SDL_GameControllerHasButton
source · pub unsafe extern "C" fn SDL_GameControllerHasButton(
gamecontroller: *mut SDL_GameController,
button: SDL_GameControllerButton,
) -> SDL_bool
Expand description
Query whether a game controller has a given button.
This merely reports whether the controller’s mapping defined this button, as that is all the information SDL has about the physical device.
\param gamecontroller a game controller \param button a button enum value (an SDL_GameControllerButton value) \returns SDL_TRUE if the controller has this button, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.14.