Skip to content

Commit

Permalink
Add a property hint for the iOS touch delay project setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed Jun 12, 2022
1 parent 8df8fff commit 21da2fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21da2fb

Please sign in to comment.