ANDROIDSDL: code optimization

This commit is contained in:
lubomyr 2017-02-01 14:34:32 +02:00
parent 9cdda5c045
commit 2d7803c22f
3 changed files with 18 additions and 11 deletions

View file

@ -97,3 +97,17 @@ void OSystem_ANDROIDSDL::setFeatureState(Feature f, bool enable) {
OSystem_POSIX::setFeatureState(f, enable);
}
bool OSystem_ANDROIDSDL::getFeatureState(Feature f) {
switch (f) {
case kFeatureTouchpadMode:
return ConfMan.getBool("touchpad_mouse_mode");
break;
case kFeatureOnScreenControl:
return ConfMan.getBool("onscreen_control");
break;
default:
return OSystem_POSIX::getFeatureState(f);
break;
}
}