Browse Source

[android] Fixed wrong button mask for right click

ModProg 4 years ago
parent
commit
2667261520
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/android/os_android.cpp

+ 1 - 1
platform/android/os_android.cpp

@@ -663,7 +663,7 @@ int OS_Android::_android_button_mask_to_godot_button_mask(int android_button_mas
 	if (android_button_mask & AMOTION_EVENT_BUTTON_BACK) {
 	if (android_button_mask & AMOTION_EVENT_BUTTON_BACK) {
 		godot_button_mask |= BUTTON_MASK_XBUTTON1;
 		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;
 		godot_button_mask |= BUTTON_MASK_XBUTTON2;
 	}
 	}