Function SDL_GetJoystickVendor
pub unsafe extern "C" fn SDL_GetJoystickVendor(
joystick: *mut SDL_Joystick,
) -> u16
Available on crate feature
dep_sdl3
only.Expand description
Get the USB vendor ID of an opened joystick, if available.
If the vendor ID isn’t available this function returns 0.
§Parameters
joystick
: theSDL_Joystick
obtained fromSDL_OpenJoystick()
.
§Return value
Returns the USB vendor ID of the selected joystick, or 0 if unavailable.
§Availability
This function is available since SDL 3.2.0.