Function SDL_GameControllerGetAttached
pub unsafe extern "C" fn SDL_GameControllerGetAttached(
gamecontroller: *mut _SDL_GameController,
) -> SDL_bool
Available on crate feature
dep_sdl2
only.Expand description
Check if a controller has been opened and is currently connected.
\param gamecontroller a game controller identifier previously returned by SDL_GameControllerOpen() \returns SDL_TRUE if the controller has been opened and is currently connected, or SDL_FALSE if not.
\since This function is available since SDL 2.0.0.
\sa SDL_GameControllerClose \sa SDL_GameControllerOpen