I upgraded to the new Gideros (2023.06)
When I play the app on a device I no longer receive Android Back button (301) KEY_UP event.
I did some research and it turned out that every time I press the back button I am receiving 2 KEY_DOWN events instead of (KEY_DOWN/KEY_UP).
Samsung Galaxy S23 Ultra. Android 13.
How to reproduce
Create a simple project with this main.lua:
stage:addEventListener(Event.KEY_UP,
function (event)
print("UP:"..event.keyCode)
end
)
stage:addEventListener(Event.KEY_DOWN,
function (event)
print("DOWN:"..event.keyCode)
end
) |
Run it on Android device player.
Press the back button once.
Result:
DOWN:301
DOWN:301
Comments
Results:
KEY_DOWN:301
KEY_UP:301
KEY_DOWN:301
KEY_UP:301
Could be android 13 related?
Likes: MoKaLux
Likes: MoKaLux
I mean when I clone the repo how do I build Gideros from the source code on Mac?
But, if you just want to test the patch from the back key, you can just do a regular android export (not apk), and change the relevant java lines in android studio.
A 2023.6.1 version is also in preparation, but I'd like to fix your other issue (related to GTween) before.
Likes: MoKaLux