MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / getRawGUIDString

Method getRawGUIDString

src/gamecontroller/gamecontroller.cpp:103–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101QString GameController::getProductVersion() const { return getRawProductVersion(); }
102
103QString GameController::getRawGUIDString() const
104{
105 QString temp = QString();
106
107 if (controller != nullptr)
108 {
109 SDL_Joystick *joyhandle = SDL_GameControllerGetJoystick(controller);
110
111 if (joyhandle != nullptr)
112 {
113 SDL_JoystickGUID tempGUID = SDL_JoystickGetGUID(joyhandle);
114 char guidString[65] = {'0'};
115 SDL_JoystickGetGUIDString(tempGUID, guidString, sizeof(guidString));
116 temp = QString(guidString);
117 }
118 }
119
120 return temp;
121}
122
123QString GameController::getRawVendorString() const
124{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected