ANDROIDSDL: code optimization
This commit is contained in:
parent
9cdda5c045
commit
2d7803c22f
3 changed files with 18 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue