SDL_GetJoystickVendor - Get the USB vendor ID of an opened joystick, if available.
Contents
Availability
This function is available since SDL 3.2.0.
Description
If the vendor ID isn't available this function returns 0.
Function Parameters
joystick
the SDL_Joystick
obtained from SDL_OpenJoystick ().
Header File
Defined in SDL3/SDL_joystick.h
Name
SDL_GetJoystickVendor - Get the USB vendor ID of an opened joystick, if available.
Return Value
( Uint16 ) Returns the USB vendor ID of the selected joystick, or 0 if unavailable.
See Also
âĸ(3), SDL_GetJoystickVendorForID(3) Simple Directmedia Layer SDL 3.2.10 SDL_GetJoystickVendor(3)
Synopsis
#include"SDL3/SDL.h"Uint16SDL_GetJoystickVendor(SDL_Joystick*joystick);
