summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-12 00:31:40 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-12 19:30:00 +0200
commit21da2fbbb08664c7cedac450d7e7331a6f270ade (patch)
tree6d101eb272b46ba9b5431bc64f568ea5fcea37d4 /main
parent8df8fff54ba2263d53448b0a7f4e33fa76fdea50 (diff)
Add a property hint for the iOS touch delay project setting
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 20270190b3..84f3f3593e 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1496,7 +1496,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
"0,33200,1,or_greater")); // No negative numbers
GLOBAL_DEF("display/window/ios/hide_home_indicator", true);
- GLOBAL_DEF("input_devices/pointing/ios/touch_delay", 0.150);
+ GLOBAL_DEF("input_devices/pointing/ios/touch_delay", 0.15);
+ ProjectSettings::get_singleton()->set_custom_property_info("input_devices/pointing/ios/touch_delay",
+ PropertyInfo(Variant::FLOAT,
+ "input_devices/pointing/ios/touch_delay",
+ PROPERTY_HINT_RANGE, "0,1,0.001"));
// XR project settings.
GLOBAL_DEF_RST_BASIC("xr/openxr/enabled", false);