1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #51744 from ModProg/android-right-click-3.3

[3.3] [android] Fixed wrong button mask for right click
This commit is contained in:
Rémi Verschelde
2021-08-17 12:49:28 +02:00
committed by GitHub

View File

@@ -680,7 +680,7 @@ int OS_Android::_android_button_mask_to_godot_button_mask(int android_button_mas
if (android_button_mask & AMOTION_EVENT_BUTTON_BACK) {
godot_button_mask |= BUTTON_MASK_XBUTTON1;
}
if (android_button_mask & AMOTION_EVENT_BUTTON_SECONDARY) {
if (android_button_mask & AMOTION_EVENT_BUTTON_FORWARD) {
godot_button_mask |= BUTTON_MASK_XBUTTON2;
}