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

Method getSerialString

src/joystick.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108QString Joystick::getSerialString() const
109{
110 QString temp = QString();
111#if SDL_VERSION_ATLEAST(2, 0, 14)
112 if (m_joyhandle != nullptr)
113 {
114 const char *serial = SDL_JoystickGetSerial(m_joyhandle);
115 temp = QString(serial).remove(QRegularExpression("[^A-Za-z0-9]"));
116 }
117#endif
118
119 return temp;
120}
121
122QString Joystick::getProductVersion() const
123{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected