mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
iOS: Enable "double-swipe" to switch apps
To prevent accidental app switching. Unfortunately, the way to do this is to disable auto-hiding of the swipe indicator. Another strange Apple quirk.
This commit is contained in:
parent
f9d4cd23c0
commit
21df698a20
2 changed files with 4 additions and 3 deletions
|
@ -134,7 +134,8 @@ id<PPSSPPViewController> sharedViewController;
|
|||
}
|
||||
|
||||
- (BOOL)prefersHomeIndicatorAutoHidden {
|
||||
return YES;
|
||||
// Would love to hide it, but it prevents the double-swipe protection from working.
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)shareText:(NSString *)text {
|
||||
|
|
|
@ -481,7 +481,8 @@ void VulkanRenderLoop(IOSVulkanContext *graphicsContext, CAMetalLayer *metalLaye
|
|||
}
|
||||
|
||||
- (BOOL)prefersHomeIndicatorAutoHidden {
|
||||
return YES;
|
||||
// Would love to hide it, but it prevents the double-swipe protection from working.
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)shareText:(NSString *)text {
|
||||
|
@ -531,7 +532,6 @@ extern float g_safeInsetBottom;
|
|||
[self updateGesture];
|
||||
}
|
||||
|
||||
|
||||
- (void)updateGesture {
|
||||
INFO_LOG(SYSTEM, "Updating swipe gesture.");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue