sdlJoystickGetVendor function
Get the USB vendor ID of an opened joystick, if available.
If the vendor ID isn't available this function returns 0.
\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \returns the USB vendor ID of the selected joystick, or 0 if unavailable.
\since This function is available since SDL 2.0.6.
extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetVendor(SDL_Joystick *joystick)
Implementation
int sdlJoystickGetVendor(Pointer<SdlJoystick> joystick) {
final sdlJoystickGetVendorLookupFunction = libSdl2.lookupFunction<
Uint16 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)>('SDL_JoystickGetVendor');
return sdlJoystickGetVendorLookupFunction(joystick);
}