logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetJoystickSerial - Get the serial number of an opened joystick, if available.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                           SDL_GetJoystickSerial(3)

Description

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

Function Parameters

joystick
              the SDL_Joystick obtained from SDL_OpenJoystick().

Name

       SDL_GetJoystickSerial - Get the serial number of an opened joystick, if available.

Return Value

       Returns the serial number of the selected joystick, or NULL if unavailable.

Synopsis

#include<SDL3/SDL_joystick.h>constchar*SDL_GetJoystickSerial(SDL_Joystick*joystick);

See Also