-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rightclick not working on Android is not BUTTON_RIGHT #51737
Comments
cc @thebestnom Note for potential testers: this requires a hardware mouse, which you can connect to an Android device using an USB OTG adapter or Bluetooth. Using an Android emulator on a PC might work, but I'm not sure. |
Note that the Android input handling changed significantly in I haven't tested and I'm not familiar with that code, but from a quick glance at the code I noticed something fishy: godot/platform/android/os_android.cpp Lines 683 to 685 in f66ff33
|
@akien-mga I tried your recomendation and it fixed the issue: #51744 |
What rom are you? the fix is mostly wrong 😅 |
I don't know if the fix is sufficient for all ROMs but it does seem to fix a typo, no? What's the use case for matching |
Samsung Android 11, but this should be the default behaviour, did you check with a native android application?
|
Actually not, samsung did this completely wrong when I tested on my dad galaxy s10, I have a huge complain on it in the PR 😅 |
Oh... My bad, I didn't read the bug correctly, I think you are correct, but my comment in the PR will make this really hard to test on most devices 😅 |
Godot version
3.3.2.stable
System information
Android
Issue description
While left and middle click correctly map to
BUTTON_LEFT
andBUTTON_MIDDLE
rightclick does not, it is 0 instead.Steps to reproduce
Attach this to a control and run on Android (I have a child name Label2 to display the value):
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: