sdlGetJoystickGuidInfo function joystick
void
sdlGetJoystickGuidInfo()
Get the device information encoded in a SDL_GUID structure.
\param guid the SDL_GUID you wish to get info about. \param vendor a pointer filled in with the device VID, or 0 if not available. \param product a pointer filled in with the device PID, or 0 if not available. \param version a pointer filled in with the device version, or 0 if not available. \param crc16 a pointer filled in with a CRC used to distinguish different products with the same VID/PID, or 0 if not available.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_GetJoystickGUIDForID
extern SDL_DECLSPEC void SDLCALL SDL_GetJoystickGUIDInfo(SDL_GUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version, Uint16 *crc16)
Implementation
void sdlGetJoystickGuidInfo(
SdlGuid guid,
Pointer<Uint16> vendor,
Pointer<Uint16> product,
Pointer<Uint16> version,
Pointer<Uint16> crc16,
) {
final sdlGetJoystickGuidInfoLookupFunction = _libSdl
.lookupFunction<
Void Function(
SdlGuid guid,
Pointer<Uint16> vendor,
Pointer<Uint16> product,
Pointer<Uint16> version,
Pointer<Uint16> crc16,
),
void Function(
SdlGuid guid,
Pointer<Uint16> vendor,
Pointer<Uint16> product,
Pointer<Uint16> version,
Pointer<Uint16> crc16,
)
>('SDL_GetJoystickGUIDInfo');
return sdlGetJoystickGuidInfoLookupFunction(
guid,
vendor,
product,
version,
crc16,
);
}