sdlGetJoystickGuidInfo function

void sdlGetJoystickGuidInfo(
  1. SdlGuid guid,
  2. Pointer<Uint16> vendor,
  3. Pointer<Uint16> product,
  4. Pointer<Uint16> version,
  5. Pointer<Uint16> crc16,
)

Get the device information encoded in a SDL_JoystickGUID structure

\param guid the SDL_JoystickGUID 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

\since This function is available since SDL 2.26.0.

\sa SDL_JoystickGetDeviceGUID

extern DECLSPEC void SDLCALL SDL_GetJoystickGUIDInfo(SDL_JoystickGUID 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 = libSdl2.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);
}