Function SDL_GamepadConnected

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

Check if a gamepad has been opened and is currently connected.

§Parameters

§Return value

Returns true if the gamepad has been opened and is currently connected, or false if not.

§Availability

This function is available since SDL 3.2.0.