summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-09 18:08:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-09 18:08:58 +0100
commit74b03edf1e1b12b95ff38c2aaad603d85c80a230 (patch)
tree7655f4cbb87217e3efc5648684cc4773de807d8e /modules
parentd584ce0122263edb0cba14abc8ead248ff67cd91 (diff)
parent2235a1cbd06440911c2679204dbc8b7d47b7e83f (diff)
downloadredot-engine-74b03edf1e1b12b95ff38c2aaad603d85c80a230.tar.gz
Merge pull request #82800 from Sauermann/fix-screen-mousemotion
Add screen-related attributes to mouse input events
Diffstat (limited to 'modules')
-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);
}
}