diff options
author | thebestnom <shoval.arad@gmail.com> | 2020-12-08 23:51:45 +0200 |
---|---|---|
committer | thebestnom <shoval.arad@gmail.com> | 2020-12-08 23:51:45 +0200 |
commit | d543917c037d123b025f7762ada0d2493e5e8fe4 (patch) | |
tree | 23c2bcc3537f33e990759c5faaefded51753a340 /platform/android/display_server_android.cpp | |
parent | 45d627a845dd991c2ea1a982dc028c591dd41e74 (diff) |
Android: fix mouse capture relative wrong
Diffstat (limited to 'platform/android/display_server_android.cpp')
-rw-r--r-- | platform/android/display_server_android.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/android/display_server_android.cpp b/platform/android/display_server_android.cpp index 4d6634256d..8711a4333c 100644 --- a/platform/android/display_server_android.cpp +++ b/platform/android/display_server_android.cpp @@ -725,7 +725,6 @@ void DisplayServerAndroid::process_mouse_event(int input_device, int event_actio ev->set_global_position(hover_prev_pos); ev->set_relative(event_pos); } - ev->set_relative(event_pos - hover_prev_pos); ev->set_button_mask(event_buttons_mask); Input::get_singleton()->accumulate_input_event(ev); } break; |