Input: Update mouse position on mouse-button events.
(cherry picked from commit 468719c480
)
This commit is contained in:
parent
f263274a25
commit
ed3134088b
1 changed files with 5 additions and 0 deletions
|
@ -304,6 +304,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 a new issue