summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuya@meta.com>2022-10-22 07:30:46 -0700
committerFredia Huya-Kouadio <fhuya@meta.com>2022-10-22 07:30:46 -0700
commit13e4770b97d0e6343556676dddb1b97d09d8bbdf (patch)
treefdc45faed424d118c3655e88726fa7c4f4f83505 /platform/ios
parent276ab5be07752582b4341c33fb8f53a7887af87a (diff)
Add double_tap attribute to InputEventScreenTouch
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/display_server_ios.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm
index d3a0f38463..cf0fae4997 100644
--- a/platform/ios/display_server_ios.mm
+++ b/platform/ios/display_server_ios.mm
@@ -235,6 +235,7 @@ void DisplayServerIOS::touch_press(int p_idx, int p_x, int p_y, bool p_pressed,
ev->set_index(p_idx);
ev->set_pressed(p_pressed);
ev->set_position(Vector2(p_x, p_y));
+ ev->set_double_tap(p_double_click);
perform_event(ev);
}
}