godot/platform
Ruslan Mustakov 99cf2ffb19 iPhone X support and iOS-related fixes
Starting from April 2018 Apple no longer accepts apps that do not
support iPhone X. For games this mainly means respecting the safe area,
unobstructed by notch and virtual home button. UI controls must be
placed within the safe area so that users can interact with them.

This commit:

- Adds OS::get_window_safe_area method that returns unobscured area of
  the window, where interactive controls should be rendered.

- Reorganizes how launch screens are exported - the previous way was
  incorrect and modern iPhones did not pick up the correct screens and
  because of that used a non-native resolution to render the game.

- Adds launch screen options for iPhone X.

- Makes launch screens optional in the export template. If not
  specified, a white screen will be used.

- Adds App Store icon (1024x1024) export option as it now has to be
  bundled with the app instead of being provided in iTunes Connect.

- Fixes crash when launching games in iOS Simulator. It happened because
  controllerWasConnected callback came before the engine was
  initialized. Now in such case the controllers will be queued up and
  registered after initialization is done.

- Fixes issue with the virtual keyboard where for some reason
  autocorrection panel would intersect with the keyboard itself and not
  allow you to use the top row of the keyboard. This is fixed by
  disabling autocorrection altogether.

Closes #17358. Fixes #17428. Fixes #17331.

(cherry picked from commit 1d9a3a9b1c)
2018-04-14 20:17:47 +02:00
..
android Fix getting Android device information 2018-03-29 00:34:31 +02:00
haiku Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
iphone iPhone X support and iOS-related fixes 2018-04-14 20:17:47 +02:00
javascript Flush HTTPClient response data only on request/close in HTML5 platform 2018-02-19 22:42:38 +01:00
osx Implement always-on-top for MacOS 2018-04-14 19:04:13 +02:00
server SCons: Fix linking system pcre2 on server platform 2018-03-04 13:47:35 +01:00
uwp Fix typos with codespell 2018-02-22 12:17:06 +01:00
windows Add new window setting: always on top 2018-04-14 19:03:53 +02:00
x11 Add new window setting: always on top 2018-04-14 19:03:53 +02:00
register_platform_apis.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00