mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-27 15:09:11 +00:00
SDL_GUIDToString() follows the SDL_GetStringRule
Also removed the distinction between SDL_GUID and SDL_JoystickGUID
This commit is contained in:
parent
892df4bf4b
commit
61a7a0e579
44 changed files with 182 additions and 260 deletions
|
@ -918,9 +918,9 @@ static void AddController(SDL_JoystickID id, SDL_bool verbose)
|
|||
if (verbose && !SDL_IsGamepad(id)) {
|
||||
const char *name = SDL_GetJoystickName(joystick);
|
||||
const char *path = SDL_GetJoystickPath(joystick);
|
||||
char guid[33];
|
||||
const char *guid;
|
||||
SDL_Log("Opened joystick %s%s%s\n", name, path ? ", " : "", path ? path : "");
|
||||
SDL_GetJoystickGUIDString(SDL_GetJoystickGUID(joystick), guid, sizeof(guid));
|
||||
guid = SDL_GUIDToString(SDL_GetJoystickGUID(joystick));
|
||||
SDL_Log("No gamepad mapping for %s\n", guid);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue