godot/core/os
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
..
SCsub
copymem.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dir_access.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dir_access.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
file_access.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
file_access.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
input.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
input.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
input_event.cpp (Magnify|Pan)Gesture: implement as_text 2018-02-27 17:52:18 +01:00
input_event.h (Magnify|Pan)Gesture: implement as_text 2018-02-27 17:52:18 +01:00
keyboard.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
keyboard.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
main_loop.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
main_loop.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
memory.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
memory.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mutex.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mutex.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
os.cpp Added OS::center_window to center the window precisely on desktop platforms 2018-02-19 22:14:05 +01:00
os.h iPhone X support and iOS-related fixes 2018-04-14 20:17:47 +02:00
rw_lock.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rw_lock.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
semaphore.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
semaphore.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shell.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shell.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_dummy.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_dummy.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_safe.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_safe.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
threaded_array_processor.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00