mirror of
https://github.com/gopher64/gopher64.git
synced 2026-10-31 03:26:52 +01:00
improve android exit (#1254)
* improve android exit * more * more * more * more * more
This commit is contained in:
1 parent
81c8469a79
commit
83b9071271
1 file changed
+4
@@ -140,6 +140,10 @@ pub fn sdl_hints() {
|
||||
sdl3_sys::everything::SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY,
|
||||
hint.as_ptr(),
|
||||
);
|
||||
sdl3_sys::everything::SDL_SetHint(
|
||||
sdl3_sys::everything::SDL_HINT_ANDROID_TRAP_BACK_BUTTON,
|
||||
hint.as_ptr(),
|
||||
);
|
||||
let app_id = std::ffi::CString::new(APP_ID).unwrap();
|
||||
sdl3_sys::everything::SDL_SetHint(sdl3_sys::everything::SDL_HINT_APP_ID, app_id.as_ptr());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user