sdlGetJoystickProduct function
Get the USB product ID of an opened joystick, if available.
If the product ID isn't available this function returns 0.
\param joystick the SDL_Joystick obtained from SDL_OpenJoystick(). \returns the USB product ID of the selected joystick, or 0 if unavailable.
\since This function is available since SDL 3.1.3.
\sa SDL_GetJoystickProductForID
extern SDL_DECLSPEC Uint16 SDLCALL SDL_GetJoystickProduct(SDL_Joystick *joystick)
Implementation
int sdlGetJoystickProduct(Pointer<SdlJoystick> joystick) {
final sdlGetJoystickProductLookupFunction = libSdl3.lookupFunction<
Uint16 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)>('SDL_GetJoystickProduct');
return sdlGetJoystickProductLookupFunction(joystick);
}