Make some UI adjustments on TV devices

This commit is contained in:
Henrik Rydgård committed 2015-04-03 11:54:24 +02:00
1 parent 3eff1100d0
commit b7498f4581
6 files changed
+53 -43

No files matched your search

+12 -3
View File
@@ -487,11 +487,20 @@ static ConfigSetting soundSettings[] = {
static bool DefaultShowTouchControls() {
#if defined(MOBILE_DEVICE)
std::string name = System_GetProperty(SYSPROP_NAME);
if (KeyMap::HasBuiltinController(name)) {
int deviceType = System_GetPropertyInt(SYSPROP_DEVICE_TYPE);
if (deviceType == DEVICE_TYPE_MOBILE) {
std::string name = System_GetProperty(SYSPROP_NAME);
if (KeyMap::HasBuiltinController(name)) {
return false;
} else {
return true;
}
} else if (deviceType == DEVICE_TYPE_TV) {
return false;
} else if (deviceType == DEVICE_TYPE_DESKTOP) {
return false;
} else {
return true;
return false;
}
#else
return false;