getFirmwareVersion method

int getFirmwareVersion()

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.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC Uint16 SDLCALL SDL_GetGamepadFirmwareVersion(SDL_Gamepad *gamepad)

{@category gamepad}

Implementation

int getFirmwareVersion() => sdlGetGamepadFirmwareVersion(this);