Function SDL_GetGamepadProductVersion

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

Get the product version of an opened gamepad, if available.

If the product version isn’t available this function returns 0.

§Parameters

  • gamepad: the gamepad object to query.

§Return value

Returns the USB product version, or zero if unavailable.

§Availability

This function is available since SDL 3.2.0.

§See also