Android: fix mouse capture relative wrong

This commit is contained in:
thebestnom 2020-12-08 23:51:45 +02:00
parent 45d627a845
commit d543917c03

View file

@ -725,7 +725,6 @@ void DisplayServerAndroid::process_mouse_event(int input_device, int event_actio
ev->set_global_position(hover_prev_pos); ev->set_global_position(hover_prev_pos);
ev->set_relative(event_pos); ev->set_relative(event_pos);
} }
ev->set_relative(event_pos - hover_prev_pos);
ev->set_button_mask(event_buttons_mask); ev->set_button_mask(event_buttons_mask);
Input::get_singleton()->accumulate_input_event(ev); Input::get_singleton()->accumulate_input_event(ev);
} break; } break;