---
name: "SDL_hid_device_info"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_hid_device_info"
---

# SDL\_hid\_device\_info(3type)

Information about a connected HID device

## NAME

SDL\_hid\_device\_info - Information about a connected HID device

## HEADER FILE

Defined in SDL3/SDL\_hidapi.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_hid\_device\_info** **{**     **/\*\* Platform-specific device path \*/**     **char \*path;**     **/\*\* Device Vendor ID \*/**     **unsigned short vendor\_id;**     **/\*\* Device Product ID \*/**     **unsigned short product\_id;**     **/\*\* Serial Number \*/**     **wchar\_t \*serial\_number;**     **/\*\* Device Release Number in binary-coded decimal,**         **also known as Device Version Number \*/**     **unsigned short release\_number;**     **/\*\* Manufacturer String \*/**     **wchar\_t \*manufacturer\_string;**     **/\*\* Product string \*/**     **wchar\_t \*product\_string;**     **/\*\* Usage Page for this Device/Interface**         **(Windows/Mac/hidraw only) \*/**     **unsigned short usage\_page;**     **/\*\* Usage for this Device/Interface**         **(Windows/Mac/hidraw only) \*/**     **unsigned short usage;**     **/\*\* The USB interface which this logical device**         **represents.**         **Valid only if the device is a USB HID device.**         **Set to -1 in all other cases.**     **\*/**     **int interface\_number;**     **/\*\* Additional information about the USB interface.**         **Valid on libusb and Android implementations. \*/**     **int interface\_class;**     **int interface\_subclass;**     **int interface\_protocol;**     **/\*\* Underlying bus type \*/**     **SDL\_hid\_bus\_type bus\_type;**     **/\*\* Pointer to the next device \*/**     **struct SDL\_hid\_device\_info \*next;** **} SDL\_hid\_device\_info;**

## AVAILABILITY

This struct is available since SDL 3.2.0.
