summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-13 14:00:14 +0100
committerGitHub <noreply@github.com>2019-12-13 14:00:14 +0100
commitcf3a863fa92253ecb833a66cc2acb1463e6002d1 (patch)
tree42c4e4566b1aaeb63ded09c03e50132b8738c71b /main
parent9432520449f3b1affdca37aea366f4cf358bc560 (diff)
parent4d61118f64c1c56f50fbe706277fd0b1499f6d98 (diff)
downloadredot-engine-cf3a863fa92253ecb833a66cc2acb1463e6002d1.tar.gz
Merge pull request #34229 from NoFr1ends/fix-home-indicator-ios
Allow to change the home indicator behaviour on iOS
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index cdaee06135..3ac343a3c5 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1126,6 +1126,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
OS::get_singleton()->set_low_processor_usage_mode_sleep_usec(GLOBAL_DEF("application/run/low_processor_mode_sleep_usec", 6900)); // Roughly 144 FPS
ProjectSettings::get_singleton()->set_custom_property_info("application/run/low_processor_mode_sleep_usec", PropertyInfo(Variant::INT, "application/run/low_processor_mode_sleep_usec", PROPERTY_HINT_RANGE, "0,33200,1,or_greater")); // No negative numbers
+ GLOBAL_DEF("display/window/ios/hide_home_indicator", true);
+
Engine::get_singleton()->set_frame_delay(frame_delay);
message_queue = memnew(MessageQueue);