SDL Wiki
(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_GUID

An SDL_GUID is a 128-bit identifier.

Header File

Defined in SDL_guid.h

Syntax

typedef struct SDL_GUID {
    Uint8 data[16];
} SDL_GUID;

Remarks

This is an acronym for "Globally Unique ID."

While a GUID can be used to assign a unique value to almost anything, in SDL these are largely used to identify input devices across runs of SDL programs on the same platform.If the device is detached and then re-attached to a different port, or if the base system is rebooted, the device should still report the same GUID.

GUIDs are as precise as possible but are not guaranteed to distinguish physically distinct but equivalent devices. For example, two game controllers from the same vendor with the same product ID and revision may have the same GUID.

GUIDs may be platform-dependent (i.e., the same device may report different GUIDs on different operating systems).


CategoryAPI, CategoryAPIStruct, CategoryGUID


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.