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

Method getSerialString

src/gamecontroller/gamecontroller.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84QString GameController::getProductIDString() const { return getRawProductIDString(); }
85
86QString GameController::getSerialString() const
87{
88 QString temp = QString();
89#if SDL_VERSION_ATLEAST(2, 0, 14)
90 if (controller != nullptr)
91 {
92 const char *serial = SDL_GameControllerGetSerial(controller);
93 temp = QString(serial).remove(QRegularExpression("[^A-Za-z0-9]"));
94 }
95#endif
96 return temp;
97}
98
99QString GameController::getUniqueIDString() const { return getRawUniqueIDString(); }
100

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected