mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Allow binding "Pause (no menu)" to touch controls. Also makes controls stay visible when paused.
This commit is contained in:
1 parent
709e136470
commit
76fb535bec
3 files changed
+4
-2
No files matched your search
@@ -1807,7 +1807,6 @@ ScreenRenderFlags EmuScreen::render(ScreenRenderMode mode) {
|
||||
if (hasVisibleUI()) {
|
||||
draw->SetViewport(viewport);
|
||||
cardboardDisableButton_->SetVisibility(g_Config.bEnableCardboardVR ? UI::V_VISIBLE : UI::V_GONE);
|
||||
screenManager()->getUIContext()->BeginFrame();
|
||||
renderUI();
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -49,7 +49,8 @@ void GamepadUpdateOpacity(float force) {
|
||||
g_gamepadOpacity = force;
|
||||
return;
|
||||
}
|
||||
if (coreState != CORE_RUNNING_CPU) {
|
||||
if (coreState == CORE_RUNTIME_ERROR || coreState == CORE_POWERDOWN || coreState == CORE_STEPPING_GE) {
|
||||
// No need to show the controls.
|
||||
g_gamepadOpacity = 0.0f;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -283,6 +283,7 @@ namespace CustomKeyData {
|
||||
ImageID i; // UI ImageID
|
||||
uint32_t c; // Key code
|
||||
};
|
||||
// NOTE: This list can be freely reordered, we store the keycode, not the index.
|
||||
static const keyList customKeyList[] = {
|
||||
{ ImageID("I_SQUARE"), CTRL_SQUARE },
|
||||
{ ImageID("I_TRIANGLE"), CTRL_TRIANGLE },
|
||||
@@ -316,6 +317,7 @@ namespace CustomKeyData {
|
||||
{ ImageID::invalid(), VIRTKEY_ANALOG_ROTATE_CW },
|
||||
{ ImageID::invalid(), VIRTKEY_ANALOG_ROTATE_CCW },
|
||||
{ ImageID::invalid(), VIRTKEY_PAUSE },
|
||||
{ ImageID::invalid(), VIRTKEY_PAUSE_NO_MENU },
|
||||
{ ImageID::invalid(), VIRTKEY_RESET_EMULATION },
|
||||
{ ImageID::invalid(), VIRTKEY_DEVMENU },
|
||||
#ifndef MOBILE_DEVICE
|
||||
|
||||
Reference in new issue
Block a user