---
name: "SDL_GUID"
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_GUID"
---

# SDL\_GUID(3type)

An SDL\_GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform.

## NAME

SDL\_GUID - An  **SDL\_GUID**\
  is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform.

## HEADER FILE

Defined in SDL3/SDL\_guid.h

## SYNOPSIS

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

**typedef struct SDL\_GUID {**     **Uint8 data\[16\];** **} SDL\_GUID;**

## DESCRIPTION

If the device is detached and then re-attached to a different port, or if the base system is rebooted, the device should still report the same GUID.

GUIDs are as precise as possible but are not guaranteed to distinguish physically distinct but equivalent devices. For example, two game controllers from the same vendor with the same product ID and revision may have the same GUID.

GUIDs may be platform-dependent (i.e., the same device may report different GUIDs on different operating systems).

## AVAILABILITY

This struct is available since SDL 3.2.0.
