Function SDL_OpenJoystick
pub unsafe extern "C" fn SDL_OpenJoystick(
instance_id: u32,
) -> *mut SDL_Joystick
Available on crate feature
dep_sdl3
only.Expand description
Open a joystick for use.
The joystick subsystem must be initialized before a joystick can be opened for use.
§Parameters
instance_id
: the joystick instance ID.
§Return value
Returns a joystick identifier or NULL on failure; call SDL_GetError()
for
more information.
§Availability
This function is available since SDL 3.2.0.