summaryrefslogtreecommitdiff
path: root/thirdparty/bullet/btBulletDynamicsCommon.h
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2018-05-11 17:07:43 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2018-05-11 17:19:39 +0700
commit08a924bcee3b4d128ddcf261a8c2fc915db486fc (patch)
tree58ed5cf70b822353f1ec158bfc8783688a14519c /thirdparty/bullet/btBulletDynamicsCommon.h
parent74796d9b6cf1663029a5fa6b5024b236746e506a (diff)
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.
Diffstat (limited to 'thirdparty/bullet/btBulletDynamicsCommon.h')
0 files changed, 0 insertions, 0 deletions