ANDROIDSDL: Remove warning about unhandled kFeature

The fix is borrowed from the Switch backend
This commit is contained in:
Antoniou Athanasios 2019-09-14 21:45:52 +03:00
parent 6accd633b8
commit 186dfd7bd5

View File

@ -114,9 +114,12 @@ void OSystem_ANDROIDSDL::setFeatureState(Feature f, bool enable) {
ConfMan.setBool("swap_menu_and_back_buttons", enable);
swapMenuAndBackButtons(enable);
break;
}
case kFeatureFullscreenMode:
break;
default:
OSystem_POSIX::setFeatureState(f, enable);
break;
}
}
bool OSystem_ANDROIDSDL::getFeatureState(Feature f) {
@ -130,6 +133,9 @@ bool OSystem_ANDROIDSDL::getFeatureState(Feature f) {
case kFeatureSwapMenuAndBackButtons:
return ConfMan.getBool("swap_menu_and_back_buttons");
break;
case kFeatureFullscreenMode:
return true;
break;
default:
return OSystem_POSIX::getFeatureState(f);
break;
@ -137,6 +143,8 @@ bool OSystem_ANDROIDSDL::getFeatureState(Feature f) {
}
bool OSystem_ANDROIDSDL::hasFeature(Feature f) {
if (f == kFeatureFullscreenMode)
return false;
return (f == kFeatureTouchpadMode ||
f == kFeatureOnScreenControl ||
f == kFeatureSwapMenuAndBackButtons ||