---
name: "SDL_GetGamepadPath"
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_GetGamepadPath"
---

# SDL\_GetGamepadPath(3)

Get the implementation-dependent path for an opened gamepad.

## NAME

SDL\_GetGamepadPath - Get the implementation-dependent path for an opened gamepad.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

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

**const char \* SDL\_GetGamepadPath(SDL\_Gamepad \*gamepad);**

## FUNCTION PARAMETERS

- *gamepad*

  a gamepad identifier previously returned by  **SDL\_OpenGamepad** ().

## RETURN VALUE

Returns the implementation dependent path for the gamepad, or NULL if there is no path or the identifier passed is invalid.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetGamepadPathForID**(3)](/SDL_GetGamepadPathForID/3.md)
