SDL_GetJoystickGUIDForID
Get the implementation-dependent GUID of a joystick.
- Provided by: libsdl3-doc (Version: 3.2.20+ds-2)
- Source: libsdl3
- Report a bug
Get the implementation-dependent GUID of a joystick.
#include <SDL3/SDL_joystick.h>
SDL_GUID SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id);
This can be called before any joysticks are opened.
Returns the GUID of the selected joystick. If called with an invalid instance_id, this function returns a zero GUID.
This function is available since SDL 3.2.0.