Fix back button on Android

This commit is contained in:
Alexander Batalov 2022-09-28 09:19:02 +03:00
parent a1c1e03da0
commit 3924b6bba3
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ int main(int argc, char* argv[])
#endif #endif
#if __ANDROID__ #if __ANDROID__
SDL_SetHint(SDL_HINT_ANDROID_TRAP_BACK_BUTTON, "1");
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
chdir(SDL_AndroidGetExternalStoragePath()); chdir(SDL_AndroidGetExternalStoragePath());