godot/platform
Ruslan Mustakov 1d9a3a9b1c 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.
2018-04-11 14:53:24 +07:00
..
android Add safety checks when handling Android input 2018-03-27 22:03:44 +07: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-11 14:53:24 +07:00
javascript Merge pull request #17792 from eska014/enginejs-preloadpaths 2018-04-04 22:26:14 +02:00
osx Fix custom cursor when it's hidden 2018-04-09 10:28:20 -03:00
server SCons: Fix linking system pcre2 on server platform 2018-03-04 13:46:54 +01:00
uwp Fix UWP build after #17194 2018-03-29 18:21:08 +02:00
windows Fix custom cursor when it's hidden 2018-04-09 10:28:20 -03:00
x11 Fix custom cursor when it's hidden 2018-04-09 10:28:20 -03:00
register_platform_apis.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub Properly closing all files in Python code 2018-03-11 14:55:50 +01:00