diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-09 18:08:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-09 18:08:58 +0100 |
commit | 74b03edf1e1b12b95ff38c2aaad603d85c80a230 (patch) | |
tree | 7655f4cbb87217e3efc5648684cc4773de807d8e /modules | |
parent | d584ce0122263edb0cba14abc8ead248ff67cd91 (diff) | |
parent | 2235a1cbd06440911c2679204dbc8b7d47b7e83f (diff) | |
download | redot-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.cpp | 1 |
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); } } |