mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add a property hint for the iOS touch delay project setting
(cherry picked from commit 21da2fbbb0)
This commit is contained in:
parent
bec892c010
commit
b853b8d065
1 changed files with 5 additions and 1 deletions
|
|
@ -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("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);
|
Engine::get_singleton()->set_frame_delay(frame_delay);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue