Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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