diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-10-04 19:20:01 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2024-02-05 23:30:15 +0100 |
commit | 2235a1cbd06440911c2679204dbc8b7d47b7e83f (patch) | |
tree | 5d8177bd57a670fe49d59f88847ebbf56d305ed1 /platform/ios | |
parent | d3352813ea44447bfbf135efdec23acc4d1d3f89 (diff) | |
download | redot-engine-2235a1cbd06440911c2679204dbc8b7d47b7e83f.tar.gz |
Add screen-related attributes to mouse input events
Diffstat (limited to 'platform/ios')
-rw-r--r-- | platform/ios/display_server_ios.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm index c660dc5697..c46506716e 100644 --- a/platform/ios/display_server_ios.mm +++ b/platform/ios/display_server_ios.mm @@ -234,6 +234,7 @@ void DisplayServerIOS::touch_drag(int p_idx, int p_prev_x, int p_prev_y, int p_x ev->set_tilt(p_tilt); ev->set_position(Vector2(p_x, p_y)); ev->set_relative(Vector2(p_x - p_prev_x, p_y - p_prev_y)); + ev->set_relative_screen_position(ev->get_relative()); perform_event(ev); } |