diff options
author | ModProg <dev@modprog.de> | 2021-08-16 18:49:12 +0200 |
---|---|---|
committer | ModProg <dev@modprog.de> | 2021-08-16 18:49:12 +0200 |
commit | d9e24b72f7ed39d0b9b38d24ed0d246490defb04 (patch) | |
tree | cd7e677be04c09ab381cae43fe642bf463de9444 /platform/android/android_input_handler.cpp | |
parent | 8383e4e06d6420eba6e04106d5037aa18c4ed30b (diff) |
[android] Fixed wrong button mask for right click
Diffstat (limited to 'platform/android/android_input_handler.cpp')
-rw-r--r-- | platform/android/android_input_handler.cpp | 2 |
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; } |