mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Input: Update mouse position on mouse-button events.
This commit is contained in:
parent
efaeebab4d
commit
468719c480
@ -336,6 +336,11 @@ void InputDefault::parse_input_event(const InputEvent &p_event) {
|
||||
ev.screen_touch = touch_event;
|
||||
main_loop->input_event(ev);
|
||||
}
|
||||
|
||||
Point2 pos = Point2(p_event.mouse_button.global_x, p_event.mouse_button.global_y);
|
||||
if (mouse_pos != pos) {
|
||||
set_mouse_pos(pos);
|
||||
}
|
||||
} break;
|
||||
case InputEvent::MOUSE_MOTION: {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user