SDL Wiki
(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_GetJoystickGUIDInfo

Get the device information encoded in a SDL_JoystickGUID structure

Syntax

void SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version, Uint16 *crc16);

Function Parameters

guid the SDL_JoystickGUID you wish to get info about
vendor A pointer filled in with the device VID, or 0 if not available
product A pointer filled in with the device PID, or 0 if not available
version A pointer filled in with the device version, or 0 if not available
crc16 A pointer filled in with a CRC used to distinguish different products with the same VID/PID, or 0 if not available

Version

This function is available since SDL 2.26.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.