Function SDL_OpenGamepad
pub unsafe extern "C" fn SDL_OpenGamepad(
instance_id: u32,
) -> *mut SDL_Gamepad
Available on crate feature
dep_sdl3
only.Expand description
Open a gamepad for use.
§Parameters
instance_id
: the joystick instance ID.
§Return value
Returns a gamepad identifier or NULL if an error occurred; call
SDL_GetError()
for more information.
§Availability
This function is available since SDL 3.2.0.