sdlGetGamepadProductVersion function gamepad
Get the product version of an opened gamepad, if available.
If the product version isn't available this function returns 0.
\param gamepad the gamepad object to query. \returns the USB product version, or zero if unavailable.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_GetGamepadProductVersionForID
extern SDL_DECLSPEC Uint16 SDLCALL SDL_GetGamepadProductVersion(SDL_Gamepad *gamepad)
Implementation
int sdlGetGamepadProductVersion(Pointer<SdlGamepad> gamepad) {
final sdlGetGamepadProductVersionLookupFunction = _libSdl
.lookupFunction<
Uint16 Function(Pointer<SdlGamepad> gamepad),
int Function(Pointer<SdlGamepad> gamepad)
>('SDL_GetGamepadProductVersion');
return sdlGetGamepadProductVersionLookupFunction(gamepad);
}