SDL_GetGamepadFirmwareVersion(3)

SDL_GetGamepadFirmwareVersion3

Get the firmware version of an opened gamepad, if available.

Usage

#include "SDL3/SDL.h"

Uint16 SDL_GetGamepadFirmwareVersion(SDL_Gamepad *gamepad);

Header file

Defined in SDL3/SDL_gamepad.h

Overview

If the firmware version isn't available this function returns 0.

Function parameters

gamepad

the gamepad object to query.

Return value

( Uint16 ) Returns the gamepad firmware version, or zero if unavailable.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.