Merge pull request #82800 from Sauermann/fix-screen-mousemotion
Add screen-related attributes to mouse input events
This commit is contained in:
@ -4524,6 +4524,7 @@ void DisplayServerX11::process_events() {
|
||||
sd->set_index(index);
|
||||
sd->set_position(pos);
|
||||
sd->set_relative(pos - curr_pos_elem->value);
|
||||
sd->set_relative_screen_position(sd->get_relative());
|
||||
Input::get_singleton()->parse_input_event(sd);
|
||||
|
||||
curr_pos_elem->value = pos;
|
||||
@ -4945,8 +4946,10 @@ void DisplayServerX11::process_events() {
|
||||
mm->set_position(pos);
|
||||
mm->set_global_position(pos);
|
||||
mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
|
||||
mm->set_screen_velocity(mm->get_velocity());
|
||||
|
||||
mm->set_relative(rel);
|
||||
mm->set_relative_screen_position(rel);
|
||||
|
||||
last_mouse_pos = pos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user