Only show config button on Linux/Android

pull/1668/head
Jon Beniston 2023-04-24 12:14:59 +01:00
rodzic fae899926f
commit d1e7d6f1e2
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,11 @@ int GamepadInputController::getNumberOfAxes() const
bool GamepadInputController::supportsConfiguration() const
{
// Should only return true on Linux evdev or Android
return QGamepadManager::instance()->isConfigurationNeeded(m_gamepad.deviceId());
#if defined(LINUX) || defined(ANDROID)
return true;
#else
return false;
#endif
}
void GamepadInputController::configure()