nCine::JoystickGuid class

Parsed 16-byte GUID that identifies a joystick model.

Used to match a connected joystick against a mapping configuration.

Constructors, destructors, conversion operators

JoystickGuid()
JoystickGuid(JoystickGuidType type)
JoystickGuid(StringView string)

Public functions

void fromType(JoystickGuidType type)
Fills the GUID for a well-known layout type.
void fromString(StringView string)
Parses the GUID from its hexadecimal string representation.
auto isValid() const -> bool
Returns true if the GUID is not all zeros.
auto operator==(const JoystickGuid& guid) const -> bool

Public variables

std::uint8_t data
Raw GUID bytes.