1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-03-23 20:58:42 -04:00

Only show config button on Linux/Android

This commit is contained in:
Jon Beniston 2023-04-24 12:14:59 +01:00
parent fae899926f
commit d1e7d6f1e2

View File

@ -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()