SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::GUID Struct Reference

An GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. More...

Inheritance diagram for SDL::GUID:
[legend]

Public Member Functions

constexpr GUID (const GUIDRaw &gUID={}) noexcept
 Wraps GUID.
 GUID (StringParam pchGUID)
 Convert a GUID string into a GUID structure.
std::string ToString () const
 Get an ASCII string representation for a given GUID.

Detailed Description

An GUID is a 128-bit identifier for an input device that identifies that device 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).

Since
This struct is available since SDL 3.2.0.

Constructor & Destructor Documentation

◆ GUID()

SDL::GUID::GUID ( const GUIDRaw & gUID = {})
inlineconstexprnoexcept

Wraps GUID.

Parameters
gUIDthe value to be wrapped

The documentation for this struct was generated from the following file: