summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-17 12:49:52 +0200
committerGitHub <noreply@github.com>2021-08-17 12:49:52 +0200
commitddaf6cdb5caee7bc9c92ef1767699892247e73a9 (patch)
treee0be742f788c3e9ab33bfa92169d7ca4a587cefa
parente60a1559c9ed4f60293029b63700ce11abf7b212 (diff)
parentd9e24b72f7ed39d0b9b38d24ed0d246490defb04 (diff)
Merge pull request #51747 from ModProg/android-right-click-master
[master] [android] Fixed wrong button mask for right click
-rw-r--r--platform/android/android_input_handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/android_input_handler.cpp b/platform/android/android_input_handler.cpp
index b9004c4989..e03375e8d9 100644
--- a/platform/android/android_input_handler.cpp
+++ b/platform/android/android_input_handler.cpp
@@ -377,7 +377,7 @@ MouseButton AndroidInputHandler::_android_button_mask_to_godot_button_mask(int a
if (android_button_mask & AMOTION_EVENT_BUTTON_BACK) {
godot_button_mask |= MOUSE_BUTTON_MASK_XBUTTON1;
}
- if (android_button_mask & AMOTION_EVENT_BUTTON_SECONDARY) {
+ if (android_button_mask & AMOTION_EVENT_BUTTON_FORWARD) {
godot_button_mask |= MOUSE_BUTTON_MASK_XBUTTON2;
}