mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
(Android) Added a warning message when attempting to disable the touch overlay
This commit is contained in:
parent
927cb6f2f7
commit
a68154bfa5
|
@ -1191,7 +1191,24 @@ void GuiMenu::openInputDeviceOptions()
|
|||
->setOpacity(DISABLED_OPACITY);
|
||||
}
|
||||
|
||||
auto inputTouchOverlayCallback = [touchOverlaySize]() {
|
||||
auto inputTouchOverlayCallback = [this, inputTouchOverlay, touchOverlaySize]() {
|
||||
if (!inputTouchOverlay->getState()) {
|
||||
const std::string message {
|
||||
"DON'T DISABLE THE TOUCH OVERLAY UNLESS YOU ARE USING A CONTROLLER OR YOU WILL "
|
||||
"LOCK YOURSELF OUT OF THE APP. IF THIS HAPPENS YOU WILL NEED TO TEMPORARILY "
|
||||
"PLUG IN A CONTROLLER OR A KEYBOARD TO ENABLE THIS SETTING AGAIN, OR YOU "
|
||||
"COULD CLEAR THE APP STORAGE IN THE ANDROID SETTINGS TO FORCE THE CONFIGURATOR "
|
||||
"TO RUN ON NEXT STARTUP"};
|
||||
|
||||
Window* window {mWindow};
|
||||
window->pushGui(
|
||||
new GuiMsgBox(getHelpStyle(), message, "OK", nullptr, "", nullptr, "", nullptr,
|
||||
nullptr, true, true,
|
||||
(mRenderer->getIsVerticalOrientation() ?
|
||||
0.84f :
|
||||
0.54f * (1.778f / mRenderer->getScreenAspectRatio()))));
|
||||
}
|
||||
|
||||
if (touchOverlaySize->getEnabled()) {
|
||||
touchOverlaySize->setEnabled(false);
|
||||
touchOverlaySize->setOpacity(DISABLED_OPACITY);
|
||||
|
|
Loading…
Reference in a new issue