godot/platform
Ruslan Mustakov 08a924bcee Proper focus in/out handling on iOS
PR #18675 (commit 96301e9) revealed a problem with how iOS lifecycle
callbacks were handled by Godot. Before that PR it was possible to get
NOTIFICATION_WM_FOCUS_IN callback without getting the corresponding
NOTIFICATION_WM_FOCUS_OUT. That commit added a flag to ensure they are
always coupled, but now there is an issue when, for example, you open a
notification panel on iOS without moving the app to background.
It resulted in view.stopAnimation being called without the
corresponding startAnimation when the app moves to foreground again, so
it looked like the game hanged.

I changed focus out notification to be sent in applicationWillResignActive,
because it makes more sense than to do it in applicationDidEnterBackground,
because it is always called in pair with applicationDidBecomeActive, where
focus in is sent. applicationDidEnterBackground may not come under
circumstances that are now described as a comment in code.
2018-05-11 17:19:39 +07:00
..
android Merge pull request #18726 from volzhs/remove-legacy 2018-05-08 23:49:37 +02:00
haiku Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
iphone Proper focus in/out handling on iOS 2018-05-11 17:19:39 +07:00
javascript Merge pull request #18765 from eska014/enginejs-extalt 2018-05-10 21:57:07 +02:00
osx Reset the cursor with Input.set_custom_mouse_cursor(null) 2018-05-10 20:02:12 -03:00
server SCons: Fix linking system pcre2 on server platform 2018-03-04 13:46:54 +01:00
uwp For uwp the ARM architecture needs to be in lower case 2018-05-09 01:16:05 +02:00
windows Reset the cursor with Input.set_custom_mouse_cursor(null) 2018-05-10 20:02:12 -03:00
x11 Reset the cursor with Input.set_custom_mouse_cursor(null) 2018-05-10 20:02:12 -03:00
SCsub Properly closing all files in Python code 2018-03-11 14:55:50 +01:00
register_platform_apis.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00