| 106 | } |
| 107 | |
| 108 | QString 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 | |
| 122 | QString Joystick::getProductVersion() const |
| 123 | { |
nothing calls this directly
no outgoing calls
no test coverage detected