summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorfhuya <fhuya@google.com>2019-09-09 14:42:17 -0700
committerfhuya <fhuya@google.com>2019-09-19 13:29:49 -0700
commita7712cc9e4f0451794ad7eb2685786c0f2e954e7 (patch)
tree3de6822cca8dd8696aa02f3a9b2549a9b972f4f8 /core/os
parent2add51d0823fe2ef7cb439a6f3fae17e8dd4717f (diff)
Add new events and accompanying logic to notify when the app is paused and resumed on Android devices.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/main_loop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/main_loop.h b/core/os/main_loop.h
index 54e61fd2fa..aca920efcb 100644
--- a/core/os/main_loop.h
+++ b/core/os/main_loop.h
@@ -60,6 +60,8 @@ public:
NOTIFICATION_WM_ABOUT = 1011,
NOTIFICATION_CRASH = 1012,
NOTIFICATION_OS_IME_UPDATE = 1013,
+ NOTIFICATION_APP_RESUMED = 1014,
+ NOTIFICATION_APP_PAUSED = 1015,
};
virtual void input_event(const Ref<InputEvent> &p_event);