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
Volume key Android #2122
Comments
This is quite a critical bug. Any options? |
Related to #1454. |
Is this bug in your fork Multicraft? If so is this bug reproducable in Minetest? |
@paramat, This is a bug in Minetest and I could not fix it until now. However, I am working on a temporary fix right now. |
I can confirm that the volume buttons do nothing in official minetest for Android |
I know this is certainly the case with official minetest Android build because I was trying to work on a fix for it before my break. I'll see if I have any related notes on my laptop regarding it (but I doubt it unfortunately). Edit: Ok, I'm on my laptop. I can see I was working on this in my repo but about the only changes I'd made were adding some debugging hacks in keycode.cpp obviously trying to work out if at least events were being received. I see nothing in the logcat.txt associated with that build and I obviously did not get far before my break because there is nothing even close to a fix. So it needs looking at. From an obscure comment I left in the code it seems that the android volume keys were triggering "Unexpected multibyte character" (?? But take that with a grain of salt -- or a few hundred grains) |
According from its docs in android_native_app_glue.h (from the NDK), the onInputEvent should "Return 1 if you have handled the event, 0 for any default dispatching". Before, we always returned 1, meaning we blocked all hardware keys to be given to the OS. This broke the volume keys and has caused minetest#2122 and minetest#1454. Although it bases on lots of guesswork, it can probably safely be said that CGUIEnvironment::postEventFromUser returns true if the event was handled, and false if not. Therefore, set the status variable depending on what postEventFromUser returned. This commit bases on a patch provided by @MoNTE48. Fixes minetest#2122. Fixes minetest#1454.
On Android port Volume key don't work.
Tested on more device.
Don't change volume and don't show volume panel,
Pls, fix.
And Volume (+ -) and power (screenshot on more ROM) = error on chat!
The text was updated successfully, but these errors were encountered: