summaryrefslogtreecommitdiffstats
path: root/modules/webxr
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-10-04 19:20:01 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2024-02-05 23:30:15 +0100
commit2235a1cbd06440911c2679204dbc8b7d47b7e83f (patch)
tree5d8177bd57a670fe49d59f88847ebbf56d305ed1 /modules/webxr
parentd3352813ea44447bfbf135efdec23acc4d1d3f89 (diff)
downloadredot-engine-2235a1cbd06440911c2679204dbc8b7d47b7e83f.tar.gz
Add screen-related attributes to mouse input events
Diffstat (limited to 'modules/webxr')
-rw-r--r--modules/webxr/webxr_interface_js.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/webxr/webxr_interface_js.cpp b/modules/webxr/webxr_interface_js.cpp
index 828476edfb..5415423fb8 100644
--- a/modules/webxr/webxr_interface_js.cpp
+++ b/modules/webxr/webxr_interface_js.cpp
@@ -675,6 +675,7 @@ void WebXRInterfaceJS::_update_input_source(int p_input_source_id) {
event->set_index(touch_index);
event->set_position(position);
event->set_relative(delta);
+ event->set_relative_screen_position(delta);
Input::get_singleton()->parse_input_event(event);
}
}