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

# SDL\_GetJoystickGUID(3)

Get the implementation-dependent GUID for the joystick.

## NAME

SDL\_GetJoystickGUID - Get the implementation-dependent GUID for the joystick.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

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

**SDL\_GUID SDL\_GetJoystickGUID(SDL\_Joystick \*joystick);**

## DESCRIPTION

This function requires an open joystick.

## FUNCTION PARAMETERS

- *joystick*

  the  **SDL\_Joystick**\
    obtained from  **SDL\_OpenJoystick** ().

## RETURN VALUE

( **SDL\_GUID** ) Returns the GUID of the given joystick. If called on an invalid index, this function returns a zero GUID; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetJoystickGUIDForID**(3)](/SDL_GetJoystickGUIDForID/3.md), **•**(3), [**SDL\_GUIDToString**(3)](/SDL_GUIDToString/3.md)
