Skip to content

Commit

Permalink
Merge pull request #51747 from ModProg/android-right-click-master
Browse files Browse the repository at this point in the history
[master] [android] Fixed wrong button mask for right click
  • Loading branch information
akien-mga authored Aug 17, 2021
2 parents e60a155 + d9e24b7 commit ddaf6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/android/android_input_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ddaf6cd

Please sign in to comment.