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

Availability

       This function is available since SDL 3.2.0.

Description

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

Function Parameters

joystick
              the SDL_Joystick
               obtained from SDL_OpenJoystick ().

Header File

       Defined in SDL3/SDL_joystick.h

Name

       SDL_GetJoystickVendor - Get the USB vendor ID of an opened joystick, if available.

Return Value

       ( Uint16 ) Returns the USB vendor ID of the selected joystick, or 0 if unavailable.

See Also

â€ĸ(3), SDL_GetJoystickVendorForID(3)

Simple Directmedia Layer                           SDL 3.2.10                           SDL_GetJoystickVendor(3)

Synopsis

#include"SDL3/SDL.h"Uint16SDL_GetJoystickVendor(SDL_Joystick*joystick);

See Also