Function SDL_GetGamepadSerial

pub unsafe extern "C" fn SDL_GetGamepadSerial(
    gamepad: *mut SDL_Gamepad,
) -> *const i8
Available on crate feature dep_sdl3 only.
Expand description

Get the serial number of an opened gamepad, if available.

Returns the serial number of the gamepad, or NULL if it is not available.

§Parameters

  • gamepad: the gamepad object to query.

§Return value

Returns the serial number, or NULL if unavailable.

§Availability

This function is available since SDL 3.2.0.