MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_GameControllerName

Function SDL_GameControllerName

deps/SDL2/src/joystick/SDL_gamecontroller.c:1766–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1764}
1765
1766const char *
1767SDL_GameControllerName(SDL_GameController * gamecontroller)
1768{
1769 if (!gamecontroller)
1770 return NULL;
1771
1772 if (SDL_strcmp(gamecontroller->name, "*") == 0) {
1773 return SDL_JoystickName(SDL_GameControllerGetJoystick(gamecontroller));
1774 } else {
1775 return gamecontroller->name;
1776 }
1777}
1778
1779SDL_GameControllerType
1780SDL_GameControllerGetType(SDL_GameController *gamecontroller)

Callers 1

WatchGameControllerFunction · 0.85

Calls 3

SDL_strcmpFunction · 0.85
SDL_JoystickNameFunction · 0.85

Tested by 1

WatchGameControllerFunction · 0.68