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_GetJoystickProduct - Get the USB product ID of an opened joystick, if available.

Availability

       This function is available since SDL 3.2.0.

Description

       If the product ID isn't available this function returns 0.

Function Parameters

joystick
              the SDL_Joystick obtained from SDL_OpenJoystick().

Name

       SDL_GetJoystickProduct - Get the USB product ID of an opened joystick, if available.

Return Value

       Returns the USB product ID of the selected joystick, or 0 if unavailable.

See Also

SDL_GetJoystickProductForID(3)

Simple Directmedia Layer                           SDL 3.2.20                          SDL_GetJoystickProduct(3)

Synopsis

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

See Also