mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
Make some UI adjustments on TV devices
This commit is contained in:
1 parent
3eff1100d0
commit
b7498f4581
6 files changed
+53
-43
No files matched your search
+12
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user