diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 13b4a2d41..a11b13525 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -2651,7 +2651,9 @@ int _processEvent(void* instance, SDL_Event* event) { int FurnaceGUI::processEvent(SDL_Event* ev) { #ifdef IS_MOBILE - if (ev->type==SDL_APP_WILLENTERBACKGROUND) { + if (ev->type==SDL_APP_TERMINATING) { + // TODO: save last song state here + } else if (ev->type==SDL_APP_WILLENTERBACKGROUND) { commitState(); e->saveConf(); } @@ -2959,7 +2961,11 @@ bool FurnaceGUI::detectOutOfBoundsWindow() { } bool FurnaceGUI::loop() { +#ifdef IS_MOBILE + bool doThreadedInput=true; +#else bool doThreadedInput=!settings.noThreadedInput; +#endif if (doThreadedInput) { logD("key input: event filter"); SDL_SetEventFilter(_processEvent,this); diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index 7b3701960..58e66eb28 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -528,6 +528,7 @@ void FurnaceGUI::drawSettings() { ImGui::SetTooltip("saves power by lowering the frame rate to 2fps when idle.\nmay cause issues under Mesa drivers!"); } +#ifndef IS_MOBILE bool noThreadedInputB=settings.noThreadedInput; if (ImGui::Checkbox("Disable threaded input (restart after changing!)",&noThreadedInputB)) { settings.noThreadedInput=noThreadedInputB; @@ -543,6 +544,7 @@ void FurnaceGUI::drawSettings() { if (ImGui::IsItemHovered()) { ImGui::SetTooltip("remembers the window's last position on startup."); } +#endif bool blankInsB=settings.blankIns; if (ImGui::Checkbox("New instruments are blank",&blankInsB)) {