From b853b8d065b6f8bafbd5765e2d5b89aee69cfb5e Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 12 Jun 2022 00:31:40 +0200 Subject: [PATCH] Add a property hint for the iOS touch delay project setting (cherry picked from commit 21da2fbbb08664c7cedac450d7e7331a6f270ade) --- main/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 35edf8e214a..f0734e2e839 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1252,7 +1252,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } 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::REAL, + "input_devices/pointing/ios/touch_delay", + PROPERTY_HINT_RANGE, "0,1,0.001")); Engine::get_singleton()->set_frame_delay(frame_delay);