| 101 | QString GameController::getProductVersion() const { return getRawProductVersion(); } |
| 102 | |
| 103 | QString 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 | |
| 123 | QString GameController::getRawVendorString() const |
| 124 | { |
nothing calls this directly
no outgoing calls
no test coverage detected