1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Add Android project settings for gesture support

- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
This commit is contained in:
Fredia Huya-Kouadio
2023-11-03 05:23:20 -07:00
parent 23c142afe7
commit e9045a6d03
5 changed files with 29 additions and 0 deletions

View File

@@ -1579,6 +1579,9 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
id->set_emulate_mouse_from_touch(bool(GLOBAL_DEF("input_devices/pointing/emulate_mouse_from_touch", true)));
}
GLOBAL_DEF("input_devices/pointing/android/enable_long_press_as_right_click", false);
GLOBAL_DEF("input_devices/pointing/android/enable_pan_and_scale_gestures", false);
MAIN_PRINT("Main: Load Translations and Remaps");
translation_server->setup(); //register translations, load them, etc.