Added more menus to phone version
This commit is contained in:
parent
1b99c64c1b
commit
4774f1ee94
22 changed files with 633 additions and 306 deletions
14
src/main.cpp
14
src/main.cpp
|
|
@ -622,8 +622,12 @@ SDL_AppResult SDL_AppIterate(void *appstate) {
|
|||
#endif
|
||||
mS.m->update();
|
||||
|
||||
if(mS.m->setToQuit)
|
||||
if(mS.m->setToQuit) {
|
||||
#ifdef __ANDROID__
|
||||
mS.m->input_app_about_to_go_to_background_callback();
|
||||
#endif
|
||||
return SDL_APP_SUCCESS;
|
||||
}
|
||||
|
||||
if(mS.m->input.hideCursor) {
|
||||
SDL_HideCursor();
|
||||
|
|
@ -825,7 +829,13 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
|
|||
}
|
||||
#endif
|
||||
|
||||
return mS.m->setToQuit ? SDL_APP_SUCCESS : SDL_APP_CONTINUE;
|
||||
if(mS.m->setToQuit) {
|
||||
#ifdef __ANDROID__
|
||||
mS.m->input_app_about_to_go_to_background_callback();
|
||||
#endif
|
||||
return SDL_APP_SUCCESS;
|
||||
}
|
||||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
// NOTE: On Android, SDL_AppQuit is triggered by onDestroy. onDestroy may or may not be called, and even if it is, it may only be partially called. You should not rely on it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue