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