You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Merge pull request #112995 from zedzee37/touch_window_fix
Fix emulated touch events using the incorrect window ID
This commit is contained in:
@@ -795,6 +795,7 @@ void Input::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool p_is_em
|
|||||||
touch_event->set_canceled(mb->is_canceled());
|
touch_event->set_canceled(mb->is_canceled());
|
||||||
touch_event->set_position(mb->get_position());
|
touch_event->set_position(mb->get_position());
|
||||||
touch_event->set_double_tap(mb->is_double_click());
|
touch_event->set_double_tap(mb->is_double_click());
|
||||||
|
touch_event->set_window_id(mb->get_window_id());
|
||||||
touch_event->set_device(InputEvent::DEVICE_ID_EMULATION);
|
touch_event->set_device(InputEvent::DEVICE_ID_EMULATION);
|
||||||
_THREAD_SAFE_UNLOCK_
|
_THREAD_SAFE_UNLOCK_
|
||||||
event_dispatch_function(touch_event);
|
event_dispatch_function(touch_event);
|
||||||
|
|||||||
Reference in New Issue
Block a user