Merge pull request #31543 from fogine/#31503-ios-touch-events-stolen
Fixes iOS>=11 stealing touch events
This commit is contained in:
commit
de6783eaca
@ -39,6 +39,10 @@
|
||||
|
||||
- (void)didReceiveMemoryWarning;
|
||||
|
||||
- (void)viewDidLoad;
|
||||
|
||||
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures;
|
||||
|
||||
- (BOOL)prefersStatusBarHidden;
|
||||
|
||||
@end
|
||||
|
@ -83,6 +83,18 @@ int add_cmdline(int p_argc, char **p_args) {
|
||||
printf("*********** did receive memory warning!\n");
|
||||
};
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
if (@available(iOS 11.0, *)) {
|
||||
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
|
||||
}
|
||||
}
|
||||
|
||||
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures {
|
||||
return UIRectEdgeAll;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotate {
|
||||
switch (OS::get_singleton()->get_screen_orientation()) {
|
||||
case OS::SCREEN_SENSOR:
|
||||
|
Loading…
Reference in New Issue
Block a user