Android: Go to background and touch handler #1633
Replies: 6 comments 13 replies
-
That is a sensible way to handle it. |
Beta Was this translation helpful? Give feedback.
-
Should not we update our templates and add
here: |
Beta Was this translation helpful? Give feedback.
-
@rh101 You are right EVENT_COME_TO_BACKGROUND and EVENT_COME_TO_FOREGROUND is triggered for winRT but I do not see usage... I agree we can not remove EVENT_COME_TO_BACKGROUND but maybe we should have this even triggered for all platforms for consistency. |
Beta Was this translation helpful? Give feedback.
-
There is one thing that Java code which calls |
Beta Was this translation helpful? Give feedback.
-
@rh101 @smilediver @solan-solan Could you confirm my current understanding:
|
Beta Was this translation helpful? Give feedback.
-
Should not we add to
and
as was proposed here: #1633 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
I caught the following case for Android application.
AppDelegate::applicationDidEnterBackground()
was called (I know it since there was set global variable to indicate)Java_org_axmol_lib_AxmolRenderer_nativeTouchesBegin(...)
Was called (while I pressed many times on screen)I just added
Director::getInstance()->getEventDispatcher()->setEnabled(false)
toAppDelegate::applicationDidEnterBackground()
and revert it insideAppDelegate::applicationWillEnterForeground()
Now it looks that to help
Beta Was this translation helpful? Give feedback.
All reactions