SDL3pp
A slim C++ wrapper for SDL3
|
A GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. More...
Public Member Functions | |
constexpr | GUID (SDL_GUID guid) |
Constructor from underling type. | |
GUID (StringParam pchGUID) | |
Convert a GUID string into a GUID structure. | |
std::string | ToString () const |
Get an ASCII string representation for a given GUID. | |
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).
|
inline |
Performs no error checking. If this function is given a string containing an invalid GUID, the function will silently succeed, but the GUID generated will not be useful.
pchGUID | string containing an ASCII representation of a GUID. |
|
inline |