Commit graph

8 commits

Author SHA1 Message Date
Thierry Crozat
e3b643d9a6 IOS7: Fix orientation detection when the view becomes visible 2023-04-27 21:43:40 +01:00
Thierry Crozat
07652d9d82 IOS7: Fix detection of orientation on some devices
The main change in to use the interface orientation and not the device
orientation. This may be different for example when locking the orientation.
This also changes the way orientation changes are detected using the
documented method. However this means dropping support for iOS 7 as this
method is only available since iOS 8, and alternative methods available in
iOS 7 have been deprecated in iOS 13.

Another change is to properly detect the interface orientation instead of
infering it from the view bounds, which was incorrect on some devices.
2023-04-27 21:43:40 +01:00
Lars Sundström
f8604faf41 IOS7: Set view controller's preference to lock the pointer
Setting this property to true indicates the view controller’s preference
to lock the pointer, although the system may not honor the request.

For the system to consider locking the pointer:
The scene must be full screen, not in Split View or Slide Over, with no
other apps in Slide Over.
The scene must be in the UISceneActivationStateForegroundActive state.

The ScummVM iOS7 client fulfills the above so the pointer is locked.
Locking the pointer hides the OS cursor (the dot), however that's wanted
since the ScummVM engine draws its own pointer.
2022-08-08 21:08:56 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Thierry Crozat
7def254317 JANITORIAL: Fix indentation in iOS7 backend source code 2021-09-28 23:28:54 +01:00
Stefan Will
67abb355f1 IOS7: enable home indicator auto-hide on iPhone X and up
This makes the annoying white line at the bottom of the screen go away
on newer (home button-less) iPhones.

2887510-prefershomeindicatorautohidden
2019-10-19 18:04:53 +03:00
Johannes Schickel
f8ef5e2476 IOS7: Make includes match our style. 2016-01-07 12:44:48 +01:00
Johannes Schickel
3130b22fcb IOS7: Make filename style consistent in itself. 2016-01-07 12:44:48 +01:00
Renamed from backends/platform/ios7/iOS7ScummVMViewController.mm (Browse further)