Function SDL_JoystickConnected

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

Get the status of a specified joystick.

§Parameters

  • joystick: the joystick to query.

§Return value

Returns true if the joystick has been opened, false if it has not; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.