getPath method

String? getPath()

Get the implementation-dependent path for an opened gamepad.

\param gamepad a gamepad identifier previously returned by SDL_OpenGamepad(). \returns the implementation dependent path for the gamepad, or NULL if there is no path or the identifier passed is invalid.

\since This function is available since SDL 3.1.3.

\sa SDL_GetGamepadPathForID

extern SDL_DECLSPEC const char * SDLCALL SDL_GetGamepadPath(SDL_Gamepad *gamepad)

Implementation

String? getPath() {
  return sdlGetGamepadPath(this);
}