sdlGetGamepadProduct function
Get the USB product ID of an opened gamepad, if available.
If the product ID isn't available this function returns 0.
\param gamepad the gamepad object to query. \returns the USB product ID, or zero if unavailable.
\since This function is available since SDL 3.1.3.
\sa SDL_GetGamepadProductForID
extern SDL_DECLSPEC Uint16 SDLCALL SDL_GetGamepadProduct(SDL_Gamepad *gamepad)
Implementation
int sdlGetGamepadProduct(Pointer<SdlGamepad> gamepad) {
final sdlGetGamepadProductLookupFunction = libSdl3.lookupFunction<
Uint16 Function(Pointer<SdlGamepad> gamepad),
int Function(Pointer<SdlGamepad> gamepad)>('SDL_GetGamepadProduct');
return sdlGetGamepadProductLookupFunction(gamepad);
}