mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Touch controls auto-off on Shield and Xperia Play
This commit is contained in:
1 parent
567f402845
commit
151c09dff7
3 files changed
+8
-3
No files matched your search
+6
-1
@@ -153,7 +153,12 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename)
|
||||
#ifdef BLACKBERRY
|
||||
control->Get("ShowTouchControls", &bShowTouchControls, pixel_xres != pixel_yres);
|
||||
#elif defined(USING_GLES2)
|
||||
control->Get("ShowTouchControls", &bShowTouchControls, true);
|
||||
std::string name = System_GetName();
|
||||
if (name == "NVIDIA:SHIELD" || name == "Sony Ericsson:R800i" || name == "Sony Ericsson:zeus") {
|
||||
control->Get("ShowTouchControls", &bShowTouchControls, false);
|
||||
} else {
|
||||
control->Get("ShowTouchControls", &bShowTouchControls, true);
|
||||
}
|
||||
#else
|
||||
control->Get("ShowTouchControls", &bShowTouchControls, false);
|
||||
#endif
|
||||
|
||||
@@ -86,7 +86,7 @@ void ControlMapper::Refresh() {
|
||||
|
||||
root->Add(new Choice(keyName_, new LinearLayoutParams(200, WRAP_CONTENT)))->OnClick.Handle(this, &ControlMapper::OnReplaceAll);
|
||||
LinearLayout *rightColumn = root->Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(1.0f)));
|
||||
|
||||
rightColumn->SetSpacing(2.0f);
|
||||
std::vector<KeyDef> mappings;
|
||||
KeyMap::KeyFromPspButton(pspKey_, &mappings);
|
||||
|
||||
|
||||
+1
-1
Submodule native updated: 3ea9d45299...ae0847cecb.
Reference in new issue
Block a user