Function SDL_GetGamepadConnectionState
pub unsafe extern "C" fn SDL_GetGamepadConnectionState(
gamepad: *mut SDL_Gamepad,
) -> SDL_JoystickConnectionState
Available on crate feature
dep_sdl3
only.Expand description
Get the connection state of a gamepad.
§Parameters
gamepad
: the gamepad object to query.
§Return value
Returns the connection state on success or
SDL_JOYSTICK_CONNECTION_INVALID
on failure; call SDL_GetError()
for more information.
§Availability
This function is available since SDL 3.2.0.